mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-27 16:45:19 +00:00
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
|
||||
|
||||
all = create(lambda _, m: True, "AllFilter")
|
||||
"""Filter all messages."""
|
||||
|
||||
me = create(lambda _, m: bool(m.from_user and m.from_user.is_self), "MeFilter")
|
||||
"""Filter messages generated by you yourself."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user