mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-06 20:25:52 +03:00
Fix is_image not considering MessageMedia objects
This was causing albums with MessageMedia objects to fail.
This commit is contained in:
parent
634d8a7898
commit
fd37e44854
|
@ -678,7 +678,8 @@ def _get_extension(file):
|
||||||
# Note: ``file.name`` works for :tl:`InputFile` and some `IOBase`
|
# Note: ``file.name`` works for :tl:`InputFile` and some `IOBase`
|
||||||
return _get_extension(file.name)
|
return _get_extension(file.name)
|
||||||
else:
|
else:
|
||||||
return ''
|
# Maybe it's a Telegram media
|
||||||
|
return get_extension(file)
|
||||||
|
|
||||||
|
|
||||||
def is_image(file):
|
def is_image(file):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user