From 5991041b35f85926b4c2de3c4fd20db399a29111 Mon Sep 17 00:00:00 2001 From: StNicolay Date: Fri, 16 Dec 2022 06:25:00 +0000 Subject: [PATCH] Added timeout to the deletion of the message in _send_tmp_message --- src/bot/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/handlers.py b/src/bot/handlers.py index e3e7b3a..df30c36 100644 --- a/src/bot/handlers.py +++ b/src/bot/handlers.py @@ -25,7 +25,7 @@ def _send_tmp_message( ) -> None: bot_mes = bot.send_message(chat_id, text, parse_mode="MarkdownV2") time.sleep(timeout) - bot.delete_message(chat_id, bot_mes.id) + bot.delete_message(chat_id, bot_mes.id, timeout=5) def _base_handler(