From d79b57b1f07966f4412af1c34d6cd4b647cbafa9 Mon Sep 17 00:00:00 2001 From: StNicolay Date: Thu, 5 Jan 2023 14:52:45 +0300 Subject: [PATCH] Added return statement after sending a message about that there is no active message --- src/bot/message_handlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bot/message_handlers.py b/src/bot/message_handlers.py index 8c78657..229eaaf 100644 --- a/src/bot/message_handlers.py +++ b/src/bot/message_handlers.py @@ -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,