2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Fix download_media referencing to gif instead of animation

This commit is contained in:
Dan 2018-08-10 11:16:57 +02:00
parent 61663b3dde
commit 4e6add7a70

View File

@ -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, (