Added Filters.all (#464)
Useful filter to use as default value when extending Handler class
This commit is contained in:
parent
cefad3f89a
commit
4df9357b48
@ -65,6 +65,9 @@ class Filters:
|
|||||||
|
|
||||||
create = create
|
create = create
|
||||||
|
|
||||||
|
all = create(lambda _, m: True, "AllFilter")
|
||||||
|
"""Filter all messages."""
|
||||||
|
|
||||||
me = create(lambda _, m: bool(m.from_user and m.from_user.is_self), "MeFilter")
|
me = create(lambda _, m: bool(m.from_user and m.from_user.is_self), "MeFilter")
|
||||||
"""Filter messages generated by you yourself."""
|
"""Filter messages generated by you yourself."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user