Skip to content

Commit

Permalink
Deprecate filters.CHAT (#4083)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed Jan 29, 2024
1 parent 2d63c57 commit 2f65fcc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion telegram/ext/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,11 @@ def filter(self, message: Message) -> bool:


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.
Expand Down

0 comments on commit 2f65fcc

Please sign in to comment.