Answer the question
In order to leave comments, you need to log in
How to remap telebot buttons?
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
key1 = types.KeyboardButton("Готово")
key2 = types.KeyboardButton("Отмена")
markup.add(key1, key2)
Answer the question
In order to leave comments, you need to log in
Most likely you need this:
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
if x == 1:
markup.add(types.KeyboardButton("Готово"))
else:
markup.add(types.KeyboardButton("Отмена"))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question