2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 12:57:52 +00:00

Allow downloading GIFs

This commit is contained in:
Dan 2018-05-13 08:37:31 +02:00
parent 5dff2fe604
commit 31cfeaa68b

View File

@ -90,6 +90,8 @@ class DownloadMedia(BaseClient):
media = message.video_note
elif message.sticker:
media = message.sticker
elif message.gif:
media = message.gif
else:
return
elif isinstance(message, (
@ -99,7 +101,8 @@ class DownloadMedia(BaseClient):
pyrogram_types.Video,
pyrogram_types.Voice,
pyrogram_types.VideoNote,
pyrogram_types.Sticker
pyrogram_types.Sticker,
pyrogram_types.GIF
)):
media = message
elif isinstance(message, str):