Components¶
- class bale.Components¶
Bases:
object
This object shows a Component.
- add_inline_keyboard(inline_keyboard, row=1)¶
Use this method to add InlineKeyboard component.
- Parameters:
inline_keyboard (
bale.InlineKeyboard
) – The Component you want to addrow (
int
) – The Component row number
Use this method to add MenuKeyboard component.
- Parameters:
menu_keyboard (
bale.MenuKeyboard
) – The Component you want to addrow (
int
) – The Component row number
- property inline_keyboards¶
Represents the InlineKeyboards list.
- Type:
List[
bale.InlineKeyboard
]
Represents the MenuKeyboards list.
- Type:
List[
bale.MenuKeyboard
]
- remove_inline_keyboard(inline_keyboard, row=1)¶
Use this method to remove InlineKeyboard component.
- Parameters:
inline_keyboard (
bale.InlineKeyboard
) – The Component you want to removerow (
int
) – The Component row number
Use this method to remove MenuKeyboard component.
- Parameters:
menu_keyboard (
bale.MenuKeyboard
) – The Component you want to removerow (
int
) – The Component row number