Похожие чаты

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 = 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?

8 ответов

16 просмотров

print and show the message when it happens

ㅤㅤㅤmek- Автор вопроса
⎞ .·. ⎝ ⎝
print and show the message when it happens

protected non thumb documents getting this issue

ㅤㅤㅤmek
protected non thumb documents getting this issue

nvm, it's solved https://t.me/TelethonUpdates/1377, will be on next release

ㅤㅤㅤmek- Автор вопроса
⎞ .·. ⎝ ⎝
nvm, it's solved https://t.me/TelethonUpdates/1377...

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

ㅤㅤㅤmek
got same issue in new version too(1.29.1) File "...

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

lonami
this traceback looks weird

btw, i can't seem to send galleries, _send_album can receive None reply_to there too

Похожие вопросы

Обсуждают сегодня

#include <stdio.h> #include <stdlib.h> #include <time.h> void mass_first_generate(int mass[5][7]) {     for (int N = 0; N < 5; N++) {         for (int A = 0; A < 7; A++) {   ...
Чувак
6
https://www.linkedin.com/posts/ugama-benedicta-kelechi-codergirl-103041300_mobiledevelopment-fluttertraining-handsonlearning-activity-7263445699227254784-IdHB?utm_source=share...
CoderGirl
16
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
VIP-397 BNBx Oracle implementation upgrade Summary This proposal, if approved, will upgrade the implementation of the BNBx Oracle contract on Venus from version 1 (V1) to v...
Venus Announcements
2
Ну вот просто даже давайте вот как. Какой нибудь конкретный кейс, можете в пример привести, где бч работает и приносит прикладную пользу, а не просто что бы было? Не крипту.
Alexander Andreev
22
For all those that keep asking why no pump? why this ? and why that...? Please close ur ewt chart and open 2 others - TOTAL (total mc) and BTC.D (btc dominance). Maybe BTC a...
Inn3r_G
19
"Since pnut can flip FTM easily, I'm swapping my FTM to pnut and hoping for a easy x5-x10" Perfect recipe for disaster. NFA but chances are, you'll end up as exit liquidity ...
C. A.
7
объясните пожалуйста, почему функция не работает должным образом? вроде должно брать активное окно сравнивать его размер с размером экрана, и если есть совпадение = true прове...
JF
12
Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
AMD status update? No longer in the plan but something might be around the corner later on Chinese partner? No longer in the plan. This market does not seem to be the top ...
Ben
6
Карта сайта