D
D
DmtIDS2021-10-29 18:00:22
Python
DmtIDS, 2021-10-29 18:00:22

How to delete a message from a Telegram bot (aiorgam) after a certain time?

For example, delete this message after 24 hours:

await bot.send_message(message.from_user.id, "Это сообщение будет удалено через 24 часа", reply_markup=nav.menu)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coryphoenixx, 2021-10-29
@coryphoenixx

Try aioschedule, task scheduler. Pass message.id there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question