mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Add GIF filter
This commit is contained in:
parent
84f9c2145c
commit
696a86791f
1 changed files with 3 additions and 0 deletions
|
|
@ -68,6 +68,9 @@ class Filters:
|
|||
sticker = build("Sticker", lambda _, m: bool(m.sticker))
|
||||
"""Filter messages that contain :obj:`Sticker <pyrogram.api.types.pyrogram.Sticker>` objects."""
|
||||
|
||||
gif = build("GIF", lambda _, m: bool(m.gif))
|
||||
"""Filter messages that contain :obj:`GIF <pyrogram.api.types.pyrogram.GIF>` objects."""
|
||||
|
||||
video = build("Video", lambda _, m: bool(m.video))
|
||||
"""Filter messages that contain :obj:`Video <pyrogram.api.types.pyrogram.Video>` objects."""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue