Похожие чаты

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 ответов

17 просмотров

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.

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

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

Ну вот просто даже давайте вот как. Какой нибудь конкретный кейс, можете в пример привести, где бч работает и приносит прикладную пользу, а не просто что бы было? Не крипту.
Alexander Andreev
22
Всем привет! Имеется функция: function IsValidChar(ch: UTF8Char): Boolean; var i: Integer; ValidChars: AnsiString; begin ValidChars := 'abcdefghijklmnopqrstuvwxyzABCDE...
Евгений
44
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
9
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
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
да кстати заметил всюда почему то всех сюда прёт, ни в одном чате столько ботов не прёт как сюда.. Может чота надо доработать?
REDis
15
I get confused when people talk about the ‘bull market’ and the ‘next bull market’ as if anyone really has a clue what’s really going on in the world. First of all - there i...
Shah
1
Мне вот любопытно. Уже сколько времени имею соблазн купить макбук, ибо подозреваю что очень уж удобен будет в связке с другой техникой от эпл которая у меня есть, да и сам по ...
Not Yeromin
14
Карта сайта