From 2f65fcc292f995e0e36cdbb2445e430030bae7c9 Mon Sep 17 00:00:00 2001 From: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com> Date: Mon, 29 Jan 2024 13:13:41 +0100 Subject: [PATCH] Deprecate `filters.CHAT` (#4083) --- telegram/ext/filters.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/telegram/ext/filters.py b/telegram/ext/filters.py index 51b156b7c..d97047aff 100644 --- a/telegram/ext/filters.py +++ b/telegram/ext/filters.py @@ -877,7 +877,11 @@ class _Chat(MessageFilter): CHAT = _Chat(name="filters.CHAT") -"""This filter filters *any* message that has a :attr:`telegram.Message.chat`.""" +"""This filter filters *any* message that has a :attr:`telegram.Message.chat`. + +.. deprecated:: NEXT.VERSION + This filter has no effect since :attr:`telegram.Message.chat` is always present. +""" class ChatType: # A convenience namespace for Chat types.