Q
Q
qwwwwwty2021-10-19 12:56:51
Bots
qwwwwwty, 2021-10-19 12:56:51

How to delete a person's message through the aiogram bot?

How to delete a person's message through the aiogram bot?

It is necessary to make it so that the bot, with a certain command (for example, "! allsms"), deletes all messages of the user, and not just one of his only messages. (the bot token is available, the chat id is also available.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
robprane, 2021-10-19
@robprane

https://core.telegram.org/bots/api#deletemessage
You need to know the id of each message. In addition, the method has a number of limitations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question