Add "all" filter

Since and empty list cannot (in the future, currently only deprecated) be used.
This commit is contained in:
Jacob Bom 2016-10-15 22:58:55 +02:00
parent ca5e3146c6
commit c626044a30

View file

@ -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):