From 696a86791fcdaef475e01e57cda749abbac18afe Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 11 May 2018 11:56:48 +0200 Subject: [PATCH] Add GIF filter --- pyrogram/client/filters/filters.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py index 41bf2da3..ecd6e8c2 100644 --- a/pyrogram/client/filters/filters.py +++ b/pyrogram/client/filters/filters.py @@ -68,6 +68,9 @@ class Filters: sticker = build("Sticker", lambda _, m: bool(m.sticker)) """Filter messages that contain :obj:`Sticker ` objects.""" + gif = build("GIF", lambda _, m: bool(m.gif)) + """Filter messages that contain :obj:`GIF ` objects.""" + video = build("Video", lambda _, m: bool(m.video)) """Filter messages that contain :obj:`Video ` objects."""