Answer the question
In order to leave comments, you need to log in
How to do in the telebot in the keyboard?
How to make it so that after a certain button press in the keyboard, another keyboard appears?
Answer the question
In order to leave comments, you need to log in
Simple example:
if message.text == '/start': #вызов клавиатуры 1
bot.send_message(message.chat.id,'Приветствую!Выберите команду:', reply_markup=keyboard1)
elif message.text == '→': #вызов клавиатуры 2
bot.send_message(message.chat.id,'2 клавиатура вызвана', reply_markup=keyboard2)
After pressing the button, call another keyboard in the same way as you called the first one.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question