Deprecate filters.CHAT (#4083)

This commit is contained in:
Bibo-Joshi 2024-01-29 13:13:41 +01:00 committed by GitHub
parent 2d63c57ed6
commit 2f65fcc292
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.