Inline Keyboard Markup

class bale.InlineKeyboardMarkup

Bases: BaseReplyMarkup

add(inline_keyboard_button, row=None)

Add an Inline Keyboard button to keyboards.

Warning

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

Examples

Components Bot

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

  • row (Optional[int]) – The row where you want the button to be placed.

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.