This commit is contained in:
@@ -29,7 +29,7 @@ async def on_startup(dispatcher):
|
|||||||
|
|
||||||
@dispatcher.message_handler(commands=['start', 'help'])
|
@dispatcher.message_handler(commands=['start', 'help'])
|
||||||
async def send_welcome(message: Message):
|
async def send_welcome(message: Message):
|
||||||
await message.reply("Привет! Я твой личный Pomodoro-бот. Выбирай действие:", reply_markup=menu_kb)
|
await message.answer("Привет! Я твой личный Pomodoro-бот. Выбирай действие:", reply_markup=menu_kb)
|
||||||
|
|
||||||
@dispatcher.callback_query_handler(lambda call: call.data.startswith("action_"))
|
@dispatcher.callback_query_handler(lambda call: call.data.startswith("action_"))
|
||||||
async def handle_callback(call: types.CallbackQuery):
|
async def handle_callback(call: types.CallbackQuery):
|
||||||
|
|||||||
Reference in New Issue
Block a user