почему после нажатия на кнопку которая появляется после запуска функции get_time_callback бот не переходит в функцию get_monitoring_block_callback? Как это можно исправить?
async def get_time_callback(message: Message):
await message.answer(
'123',
reply_markup=time_keyboard
)
logging.info("я тут")
await MonitoringState.waiting_for_monitoring_group.set()
async def get_monitoring_block_callback(query: CallbackQuery, state: FSMContext):
# async with state.proxy() as data:
# data["period"] = query.data
logging.info("пришел сюда")
time_period = query.data
await state.update_data(category=time_period)
await query.message.answer(
'123',
reply_markup=monitoring_keyboard
)
await MonitoringState.waiting_for_finish.set()
async def get_monitoring_finish_callback(query: CallbackQuery, state: FSMContext):
monitoring_block = query.data
data = await state.get_data()
await query.message.answer(
f"{data}"
)
await state.finish()
def register_handlers(dp):
dp.register_message_handler(get_time_callback, commands=['start'])
dp.register_message_handler(get_monitoring_block_callback,
state=MonitoringState.waiting_for_monitoring_group)
dp.register_callback_query_handler(get_monitoring_finish_callback,
state=MonitoringState.waiting_for_finish)