Похожие чаты

Await event.get_reply_message() doesn't work from callback query Any other methods to

get the original message the message containing inline button replied to?

9 ответов

19 просмотров

reply_msg = await (await event.get_message()).get_reply_message()

=⁠_⁠=- Автор вопроса
⎞ .·. ⎝ ⎝
reply_msg = await (await event.get_message()).get_...

Thanks This should have worked but it seems telethon can't delete pyrogram messages

=⁠_⁠=
Thanks This should have worked but it seems telet...

which part failed, show the errors. and what's the relation with pyrogram and message deleting

=⁠_⁠=- Автор вопроса

Oh this await rep_event.delete() File "/usr/local/lib/python3.11/site-packages/telethon/client/users.py", line 79, in _call raise MultiError(exceptions, results, requests) File "/usr/local/lib/python3.11/site-packages/telethon/client/users.py", line 69, in _call result = await f ^^^^^^^ telethon.errors.rpcerrorlist.MessageDeleteForbiddenError: You can't delete one of the messages you tried to delete, most likely because it is a service message. (caused by DeleteMessagesRequest)

=⁠_⁠=- Автор вопроса
⎞ .·. ⎝ ⎝
which part failed, show the errors. and what's the...

On second thought that's not it running eval still on the message and trying to delete it using the bot itself still works

=⁠_⁠=
Oh this await rep_event.delete() File "/usr/loc...

Server has too many fucky restriction for message deletion, can't tell without proper info which is the cause, you'll find more info in botapi docs https://core.telegram.org/bots/api#deletemessage

=⁠_⁠=- Автор вопроса
⎞ .·. ⎝ ⎝
Server has too many fucky restriction for message ...

Thanks I've found the issue It was a special case I guess The message I tested with was a channel forward message and it seems that can't be deleted I guess?

=⁠_⁠=
Thanks I've found the issue It was a special case ...

pretty much every message is deletable in a private chat, as long as it meets the time restrictions. depending on the load of the bot (the situation lately) that's also not true for some situation. it's not because of forward thing

⎞ .·. ⎝ ⎝
pretty much every message is deletable in a privat...

i got it,thank you very much for your enthusiastic answer.

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

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

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта