This commit is contained in:
@@ -31,7 +31,7 @@ async def on_startup(dispatcher):
|
|||||||
async def send_welcome(message: Message):
|
async def send_welcome(message: Message):
|
||||||
await message.reply("Привет! Я твой личный Pomodoro-бот. Выбирай действие:", reply_markup=menu_kb)
|
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):
|
async def handle_callback(call: types.CallbackQuery):
|
||||||
timer_manager = dispatcher['timer_manager']
|
timer_manager = dispatcher['timer_manager']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user