Added timeout to the deletion of the message in _send_tmp_message

This commit is contained in:
StNicolay 2022-12-16 06:25:00 +00:00
parent c2eca49933
commit 5991041b35

View File

@ -25,7 +25,7 @@ def _send_tmp_message(
) -> None: ) -> None:
bot_mes = bot.send_message(chat_id, text, parse_mode="MarkdownV2") bot_mes = bot.send_message(chat_id, text, parse_mode="MarkdownV2")
time.sleep(timeout) time.sleep(timeout)
bot.delete_message(chat_id, bot_mes.id) bot.delete_message(chat_id, bot_mes.id, timeout=5)
def _base_handler( def _base_handler(