A
A
Andrey Ivanov2022-01-30 21:55:19
Python
Andrey Ivanov, 2022-01-30 21:55:19

How to understand that the user deleted the message?

Good afternoon. I ran into a small problem when writing a telegram bot using the aiogram library.
I read the documentation myself, but did not find the answer.

How to understand that the user has deleted a specific message sent to him by the bot so that the bot catches this information in the handler? This must be done immediately after its removal, so all kinds of timer checks disappear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2022-01-30
@SoreMix

There is no such type of Update. The maximum is edited_message, but deleting messages is not included here. Moreover, the bot is unlikely to catch updates on its messages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question