Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You just write a function so that when you click on the inline button, a new keyboard is generated.
Roughly speaking, when you click the <1 button, new_keyboard will drop out in the body of which <1 is already specified as 0
@dp.callback_query_handler(text='<1')
async def get_menu0(call: CallbackQuery):
await call.answer(cache_time=2)
await call.message.edit_text(text='Меню: ', reply_markup=new_keyboard)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question