Почему call_data не работает? когда я нажимаю кнопку регистрации, ничего не происходитPython

Программы на Python
Anonymous
 Почему call_data не работает? когда я нажимаю кнопку регистрации, ничего не происходит

Сообщение Anonymous »

when i press the 📝 Ariza qoldirish button nothing happens Python aiogram2.25.2
@dp.message_handler(commands=['start'])
async def exit_system(message: types.Message, state: FSMContext):
# await state.reset_state(with_data=True) # Holatni tozalash
await message.answer("Xizmat turini tanlang", Answer_markup=InlineKeyboardMarkup(inline_keyboard=[
[
InlineKeyboardButton(text="📄Институт хакида малумот олиш", callback_data="information"),
],
[ InlineKeyboardButton(text="📝 Ariza qoldirish", callback_data="registration"), ] ]))
async def answer_regitration(call: types.CallbackQuery):
print(call.data)
logging.info(f"{call.from_user.id} {call.from_user.full_name} {call.data}")
await call.message.answer("Telegram raqamingizni yuboring.", reply_markup=keyboard)
await Learning.zero.set()```


Подробнее здесь: https://stackoverflow.com/questions/797 ... ng-happens

Вернуться в «Python»