await self._download_document(
File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 885, in _download_document
size = self._get_thumb(document.thumbs, thumb)
File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 762, in _get_thumb
thumbs = list(sorted(thumbs, key=sort_thumbs))
TypeError: 'NoneType' object is not iterable
await client.download_media(message,bytes,thumb=-1)
got this error for some messages
why it wont return None for messages without thumbnail?
print and show the message when it happens
protected non thumb documents getting this issue
nvm, it's solved https://t.me/TelethonUpdates/1377, will be on next release
got same issue in new version too(1.29.1) File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 422, in download_media return await self._download_document( File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 885, in _download_document size = None File "/home/user/.local/lib/python3.10/site-packages/telethon/client/downloads.py", line 762, in _get_thumb # Empty size or invalid should go last TypeError: 'NoneType' object is not iterable
your traceback looks high can you forward a file that fails, or print .stringify() it to pastebin.com, i don't think this is the same issue. it already returns if thumbs were None
this traceback looks weird
btw, i can't seem to send galleries, _send_album can receive None reply_to there too
Обсуждают сегодня