import telebot
bot = telebot.TeleBot('мой токен')
keyboard1 = telebot.types.ReplyKeyboardMarkup(True, True)
keyboard2 = telebot.types.ReplyKeyboardMarkup(True, True)
keyboard1.row('А','Б')
keyboard2.row('1,'2')
@bot.message_handler(commands=['start'])
def start_message(message):
bot.send_message(message.chat.id, 'Привет. А или Б?',reply_markup=keyboard1)
@bot.message_handler(content_types=['text'])
def send_text(message):
if message.text.lower() == 'А':
bot.send_message(message.chat.id, '1 или 2?', reply_markup=keyboard2)
elif message.text.lower() == 'Б':
bot.send_message(message.chat.id, '1 или 2?',reply_markup=keyboard2)
bot.register_next_step_handler(message,data);
??
bot.polling()