mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Add Filters.via_bot to filter messages sent via inline bots
This commit is contained in:
parent
4ba5e63034
commit
2ae8730b22
@ -172,6 +172,9 @@ class Filters:
|
|||||||
mentioned = create("Mentioned", lambda _, m: bool(m.mentioned))
|
mentioned = create("Mentioned", lambda _, m: bool(m.mentioned))
|
||||||
"""Filter messages containing mentions"""
|
"""Filter messages containing mentions"""
|
||||||
|
|
||||||
|
via_bot = create("ViaBot", lambda _, m: bool(m.via_bot))
|
||||||
|
"""Filter messages sent via inline bots"""
|
||||||
|
|
||||||
service = create("Service", lambda _, m: bool(m.service))
|
service = create("Service", lambda _, m: bool(m.service))
|
||||||
"""Filter service messages. A service message contains any of the following fields set
|
"""Filter service messages. A service message contains any of the following fields set
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user