mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
Add "all" filter
Since and empty list cannot (in the future, currently only deprecated) be used.
This commit is contained in:
parent
ca5e3146c6
commit
c626044a30
1 changed files with 7 additions and 0 deletions
|
@ -88,6 +88,13 @@ class Filters(object):
|
|||
Predefined filters for use with the `filter` argument of :class:`telegram.ext.MessageHandler`.
|
||||
"""
|
||||
|
||||
class _All(BaseFilter):
|
||||
|
||||
def filter(self, message):
|
||||
return True
|
||||
|
||||
all = _All()
|
||||
|
||||
class _Text(BaseFilter):
|
||||
|
||||
def filter(self, message):
|
||||
|
|
Loading…
Add table
Reference in a new issue