A
A
apiwi2020-06-25 14:10:47
Python
apiwi, 2020-06-25 14:10:47

How to make the vk_api bot delete its last messages after 10 minutes?

There is a bot that sends notifications to users, how to make the message be deleted from everyone after a certain time?

self.write_msg(id, "Результат не найден, попробуйте ещё раз.")


What removal method to use? I searched here, but did not understand.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2020-06-25
@anerev

There is no such possibility

N
Nikita Davydov, 2020-06-30
@nikitos42050

To delete a message through this method , you need an attached user webhook, through which you will find out the ID of the message that you want to delete.
And, accordingly, after that, install cron and simply use this method with sending the message IDs that you received from the webhook.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question