@@ -30,19 +30,26 @@ class InlineKeyboardButton(TelegramObject):
3030 url (str):
3131 callback_data (str):
3232 switch_inline_query (str):
33- switch_inline_query_current_chat (Optional[ str] ):
34- callback_game (Optional[ :class:`telegram.CallbackGame`] ):
33+ switch_inline_query_current_chat (str):
34+ callback_game (:class:`telegram.CallbackGame`):
3535
3636 Args:
37- text (str):
37+ text (str): Label text on the button.
3838 **kwargs: Arbitrary keyword arguments.
3939
4040 Keyword Args:
41- url (Optional[str]):
42- callback_data (Optional[str]):
43- switch_inline_query (Optional[str]):
44- switch_inline_query_current_chat (Optional[str]):
45- callback_game (Optional[:class:`telegram.CallbackGame`]):
41+ url (Optional[str]): HTTP url to be opened when button is pressed.
42+ callback_data (Optional[str]): Data to be sent in a callback query to the bot when button
43+ is pressed, 1-64 bytes.
44+ switch_inline_query (Optional[str]): If set, pressing the button will prompt the user to
45+ select one of their chats, open that chat and insert the bot's username and the
46+ specified inline query in the input field. Can be empty, in which case just the bot's
47+ username will be inserted.
48+ switch_inline_query_current_chat (Optional[str]): If set, pressing the button will insert
49+ the bot's username and the specified inline query in the current chat's input field.
50+ Can be empty, in which case only the bot's username will be inserted.
51+ callback_game (Optional[:class:`telegram.CallbackGame`]): Description of the game that will
52+ be launched when the user presses the button.
4653
4754 """
4855
0 commit comments