mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +00:00
Fix download_media referencing to gif instead of animation
This commit is contained in:
parent
61663b3dde
commit
4e6add7a70
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue