telegram.InlineKeyboardMarkup¶
-
class
telegram.InlineKeyboardMarkup(inline_keyboard, **kwargs)¶ Bases:
telegram.replymarkup.ReplyMarkupThis object represents an inline keyboard that appears right next to the message it belongs to.
-
inline_keyboard¶ Array of button rows, each represented by an Array of InlineKeyboardButton objects.
Type: List[List[ telegram.InlineKeyboardButton]]
Parameters: - inline_keyboard (List[List[
telegram.InlineKeyboardButton]]) – Array of button rows, each represented by an Array of InlineKeyboardButton objects. - **kwargs (
dict) – Arbitrary keyword arguments.
Shortcut for:
InlineKeyboardMarkup([[button]], **kwargs)
Return an InlineKeyboardMarkup from a single InlineKeyboardButton
Parameters: - button (
telegram.InlineKeyboardButton) – The button to use in the markup - **kwargs (
dict) – Arbitrary keyword arguments.
- button (
-
classmethod
from_column(button_column, **kwargs)¶ Shortcut for:
InlineKeyboardMarkup([[button] for button in button_column], **kwargs)
Return an InlineKeyboardMarkup from a single column of InlineKeyboardButtons
Parameters: - button_column (List[
telegram.InlineKeyboardButton]) – The button to use in the markup - **kwargs (
dict) – Arbitrary keyword arguments.
- button_column (List[
-
classmethod
from_row(button_row, **kwargs)¶ Shortcut for:
InlineKeyboardMarkup([button_row], **kwargs)
Return an InlineKeyboardMarkup from a single row of InlineKeyboardButtons
Parameters: - button_row (List[
telegram.InlineKeyboardButton]) – The button to use in the markup - **kwargs (
dict) – Arbitrary keyword arguments.
- button_row (List[
-