mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Allow downloading GIFs
This commit is contained in:
parent
5dff2fe604
commit
31cfeaa68b
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue