Added timeout to the deletion of the message in _send_tmp_message
This commit is contained in:
parent
c2eca49933
commit
5991041b35
@ -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(
|
||||
|
Reference in New Issue
Block a user