Я использую 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",
reply_markup=InlineKeyboardMarkup(
inline_keyboard=[
[
InlineKeyboardButton(
text="
callback_data="information",
),
],
[
InlineKeyboardButton(
text="
),
],
]
),
)
@dp.callback_query_handler(lambda call_back: call_back == "registration", state="*")
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 ... hing-happe