mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Fix download_media referencing to gif instead of animation
This commit is contained in:
parent
61663b3dde
commit
4e6add7a70
@ -98,8 +98,8 @@ class DownloadMedia(BaseClient):
|
||||
media = message.video_note
|
||||
elif message.sticker:
|
||||
media = message.sticker
|
||||
elif message.gif:
|
||||
media = message.gif
|
||||
elif message.animation:
|
||||
media = message.animation
|
||||
else:
|
||||
raise ValueError(error_message)
|
||||
elif isinstance(message, (
|
||||
|
Loading…
x
Reference in New Issue
Block a user