From d51c7f9ce451cd6c9f03b2555772d85c9bb16a70 Mon Sep 17 00:00:00 2001 From: Sergey Bahmatov Date: Sat, 29 Mar 2025 09:00:14 +0500 Subject: [PATCH] fix --- pomodoro_bot/bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pomodoro_bot/bot.py b/pomodoro_bot/bot.py index 425bace..84063c9 100644 --- a/pomodoro_bot/bot.py +++ b/pomodoro_bot/bot.py @@ -50,10 +50,10 @@ async def on_startup(dispatcher): await call.message.answer("Таймер остановлен ⏹") await call.answer() -@dp.callback_query_handler() +@dispatcher.callback_query_handler() async def fallback_callback(call: types.CallbackQuery): - print(f"[DEBUG fallback] Got unmatched callback: {call.data!r}") - await call.answer("Команда не распознана.") + print(f"[DEBUG fallback] Got unmatched callback: {call.data!r}") + await call.answer("Команда не распознана.") def run_bot(): - executor.start_polling(dp, skip_updates=True, on_startup=on_startup) + executor.start_polling(dp, skip_updates=True, on_startup=on_startup) \ No newline at end of file