Похожие чаты

Why i get this error? i used send_file(event.chat_id, file)

4 ответов

6 просмотров

try: send_file(...) except ValueError: print(event.chat.min)

‌ ‌ M- Автор вопроса
‌ ‌ M- Автор вопроса
‌ ‌ M
event.chat is None

and here is my code in a event handler function: await client.send_file(event.chat_id, 'tts.mp3', voice_note=True)

‌ ‌ M- Автор вопроса
‌ ‌ M
and here is my code in a event handler function: ...

error : ` Traceback (most recent call last): File "/home/penguin/.local/lib/python3.11/site-packages/telethon/client/updates.py", line 570, in _dispatch_update await callback(event) File "/home/penguin/projects/self/self.py", line 725, in spam await client.send_message(event.chat_id, text) File "/home/penguin/.local/lib/python3.11/site-packages/telethon/client/messages.py", line 838, in send_message entity = await self.get_input_entity(entity) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/penguin/.local/lib/python3.11/site-packages/telethon/client/users.py", line 467, in get_input_entity raise ValueError( ValueError: Could not find the input entity for PeerUser(user_id=2052354021) (PeerUser). Please read https://docs.telethon.dev/en/stable/concepts/entities.html to find out more details. `

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

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

Типа вызывать GetParent и проверять на соответствие GetModuleHandle?
The Bird of Hermes
67
Do any of you guys have interesting projects one could join? I'm a Middle Full-Stack developer (JS/TS, React & Node)
Lev Shapiro
40
Есть сайт. Там была древняя версия эво. Стоял плагин, который каждый коммент в Jot делал отдельной страницей. После обновления все слетело, теперь старница открывается отдельн...
Artem
1
I read yesterday that in the near future most cryptos will be gone. It's like there is a lot of bullshit within the crypto sphere and this corruption some way is going to be c...
Kanah The Great
48
$res = json_decode($наша строка из респонса); $res1 = array_map(fn($o) => $o->name, $res->breadcrumbs[0]->entities); Как такое будет на Хаскеле?.. В начале весь джейсон, в ко...
Хаскель Моисеевич Гопник
27
Добрый день. А shovel'ы можно как-то сконфигурировать в definitions.json? Пробовал что-то вроде: { "users": [ { "name": "agent", "password_hash": "RBCbTzQd...
Aleksey
1
Hello, I have a question. Can anyone help me? I want to make my cryptocurrencies, like Tron, untraceable by anyone, even government organizations. I was told that to do this,...
 ➛ Eᒪᕼᗩᗰ
14
Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
11
В чем сила брат, в NASM или FASM?
Isaac Kleiner
18
I guess you did too?
OJohnny
13
Карта сайта