L
L
lifiij2021-11-28 21:13:35
Bots
lifiij, 2021-11-28 21:13:35

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 question

Ask a Question

731 491 924 answers to any question