D
D
DTPlayer2020-06-14 22:19:11
Python
DTPlayer, 2020-06-14 22:19:11

How to make a message not in a column, but in 3?

def menu_catalog():
    conn = sqlite3.connect("base_ts.sqlite")
    cursor = conn.cursor()
    cursor.execute('SELECT * FROM catalog')
    row = cursor.fetchall()

    menu = types.InlineKeyboardMarkup(row_width=1)

    for i in row:
        menu.add(types.InlineKeyboardButton(text=f'{i[0]}', callback_data=f'{i[1]}'), types.InlineKeyboardButton(text=f'{i[0]}', callback_data=f'{i[1]}'))


It displays everything in a column, but I need 3 in one line, how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-06-14
@DTPlayer

So you yourself set the size one button = one line ....
row_width=1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question