From d98021f79a40026d54e814575b46bd29881b771d Mon Sep 17 00:00:00 2001 From: Sergey Bahmatov Date: Fri, 28 Mar 2025 22:35:24 +0500 Subject: [PATCH] fix --- pomodoro_bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pomodoro_bot/bot.py b/pomodoro_bot/bot.py index fc51526..d98fc92 100644 --- a/pomodoro_bot/bot.py +++ b/pomodoro_bot/bot.py @@ -31,7 +31,7 @@ async def on_startup(dispatcher): async def send_welcome(message: Message): await message.reply("Привет! Я твой личный Pomodoro-бот. Выбирай действие:", reply_markup=menu_kb) - @dispatcher.callback_query_handler(Text(equals=["pomodoro", "shortbreak", "longbreak", "stop"])) + @dispatcher.callback_query_handler(lambda call: call.data in ["pomodoro", "shortbreak", "longbreak", "stop"]) async def handle_callback(call: types.CallbackQuery): timer_manager = dispatcher['timer_manager']