Inline Keyboard Markup

class bale.InlineKeyboardMarkup

Bases: BaseReplyMarkup

Examples

Components Bot

add(inline_keyboard_button, row=None)

Add an Inline Keyboard button to keyboards.

Parameters:
  • inline_keyboard_button (bale.InlineKeyboardButton) – The inline keyboard button.

  • row (Optional[int]) –

    The row where you want the button to be placed.

    Warning

    Your numbers in the “row” param must be natural and greater than 0.

remove(item)

Remove a Reply Markup item from keyboards.

Parameters:

item (bale.ReplyMarkupItem) – The reply markup item.

remove_row(row)

Remove a row along with the inline keyboards located in that row.

Parameters:

row (int) –

The row.

Warning

Your numbers in the “row” param must be natural and greater than 0.