This object represents one button of an inline keyboard. You
must use exactly one of the optional fields. If all optional fields
are NULL, by defect it will generate callback_data with same data as
in text.
InlineKeyboardButton(
text,
url = NULL,
callback_data = NULL,
switch_inline_query = NULL,
switch_inline_query_current_chat = NULL,
web_app = NULL
)is.InlineKeyboardButton(x)
Label text on the button.
(Optional). HTTP url to be opened when button is pressed.
(Optional). Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes.
(Optional). 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.
(Optional). If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot's username will be inserted.
(Optional). URL string or list describing a Web App to be
launched when the button is pressed. If a string is provided, it will
be wrapped as list(url = <string>).
Object to be tested.
Note: After the user presses a callback button,
Telegram clients will display a progress bar until you call
answerCallbackQuery. It is, therefore, necessary to
react by calling answerCallbackQuery even if no notification
to the user is needed (e.g., without specifying any of the
optional parameters).