Inline Keyboard Button¶
- class bale.InlineKeyboardButton(text, *, callback_data=None, url=None, switch_inline_query=None, switch_inline_query_current_chat=None)¶
Bases:
BaleObject
This object shows an inline keyboard button (within the message).
- callback_data¶
If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot’s username and the specified inline query in the input field. Can be empty, in which case just the bot’s username will be inserted. Defaults to None.
- Type:
str
, optional
- switch_inline_query¶
If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot’s username and the specified inline query in the input field. Can be empty, in which case just the bot’s username will be inserted. Defaults to None.
- Type:
str
, optional