Inline Keyboard¶
- class bale.InlineKeyboard(text, *, callback_data=None, url=None, switch_inline_query=None, switch_inline_query_current_chat=None)¶
Bases:
object
This object shows an inline keyboard (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:
Optional[
str
]
- 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:
Optional[
str
]