Added return statement after sending a message about that there is no active message

This commit is contained in:
StNicolay 2023-01-05 14:52:45 +03:00
parent 157c2c4aa2
commit d79b57b1f0

View File

@ -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,