0

how can create a dynamic keyboard?

i created the buttons dynamically, but now i don't understand how to create the actual keyboard

i want to generate this code dynamically

keyboard_EXAMPLE = InlineKeyboardMarkup(inline_keyboard=[
        [InlineKeyboardButton(text = button_1, callback_data = 'NUOVO_1')],
        [InlineKeyboardButton(text = button_2, callback_data = 'NUOVO_2')],
        [InlineKeyboardButton(text = button_3, callback_data = 'NUOVO_3')],
        [InlineKeyboardButton(text = button_4, callback_data = 'NUOVO_4')],
        [InlineKeyboardButton(text = button_5, callback_data = 'NUOVO_5')],
        [InlineKeyboardButton(text = button_6, callback_data = 'NUOVO_6')],
    ])
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Blue Robin Mar 10 '23 at 17:48

0 Answers0