M
M
Mishele1232020-08-23 17:29:49
Python
Mishele123, 2020-08-23 17:29:49

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

2 answer(s)
U
UberPool, 2020-08-23
@Mishele123

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)

I
Ivan Yakushenko, 2020-08-23
@kshnkvn

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 question

Ask a Question

731 491 924 answers to any question