Added return statement after sending a message about that there is no active message
This commit is contained in:
parent
157c2c4aa2
commit
d79b57b1f0
@ -690,6 +690,7 @@ async def message_handler(bot: AsyncTeleBot, mes: Message) -> None:
|
||||
await delete_message(bot, mes)
|
||||
if mes.text.strip() == "/cancel":
|
||||
await send_tmp_message(bot, mes.chat.id, "Нет активного действия")
|
||||
return
|
||||
await send_tmp_message(
|
||||
bot,
|
||||
mes.chat.id,
|
||||
|
Reference in New Issue
Block a user