2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 21:38:04 +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 media = message.video_note
elif message.sticker: elif message.sticker:
media = message.sticker media = message.sticker
elif message.gif: elif message.animation:
media = message.gif media = message.animation
else: else:
raise ValueError(error_message) raise ValueError(error_message)
elif isinstance(message, ( elif isinstance(message, (