Add Filters.media_group for photos or videos being part of an album.

This commit is contained in:
Dan 2019-01-11 12:51:01 +01:00
parent 1d8fd0b836
commit 161ab79eb3

View File

@ -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."""