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']