mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Add quote filter
This commit is contained in:
parent
353a00deda
commit
eb601d5743
@ -425,6 +425,17 @@ dice = create(dice_filter)
|
||||
"""Filter messages that contain :obj:`~pyrogram.types.Dice` objects."""
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region quote_filter
|
||||
async def quote_filter(_, __, m: Message):
|
||||
return bool(m.quote)
|
||||
|
||||
|
||||
text = create(quote_filter)
|
||||
"""Filter quote messages."""
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region media_spoiler
|
||||
|
Loading…
Reference in New Issue
Block a user