Answer the question
In order to leave comments, you need to log in
How to change number of InlineKeyboardButton in InlineKeyboardMarkup?
def funcion():
a = ['1', '1'], ['2', '2'], ['3', '3']
b = []
for c in a:
b.append(InlineKeyboardButton(text = c[0], callback_data = c[1]))
return InlineKeyboardMarkup(row_width=1).add(b)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question