mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-31 20:54:51 +00:00
Add Filters.media_group for photos or videos being part of an album.
This commit is contained in:
parent
1d8fd0b836
commit
161ab79eb3
1 changed files with 3 additions and 0 deletions
|
|
@ -109,6 +109,9 @@ class Filters:
|
|||
video = create("Video", lambda _, m: bool(m.video))
|
||||
"""Filter messages that contain :obj:`Video <pyrogram.Video>` objects."""
|
||||
|
||||
media_group = create("MediaGroup", lambda _, m: bool(m.media_group_id))
|
||||
"""Filter messages containing photos or videos being part of an album."""
|
||||
|
||||
voice = create("Voice", lambda _, m: bool(m.voice))
|
||||
"""Filter messages that contain :obj:`Voice <pyrogram.Voice>` note objects."""
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue