Constructs a new InlineKeyboardButton.
Label text on the button.
Every other InlineKeyboardButton field, e.g. callback_data or url.
Optional Readonlycallback_Data to be sent in a callback query to the bot when the button is pressed (1-64 bytes).
Optional Readonlycallback_Description of the game that will be launched when the user presses the button.
Optional Readonlycopy_Description of the button that copies the specified text to the clipboard.
Optional ReadonlydisabledIf set, then the button is disabled and does nothing (Bot API 10.3+).
Optional Readonlyicon_Unique identifier of the custom emoji shown before the text.
Optional Readonlylogin_An HTTPS URL used to automatically authorize the user.
Optional Readonlypaytrue to send a Pay button; must be the first button of the first row.
Optional ReadonlystyleStyle of the button.
Optional Readonlyswitch_If set, pressing the button prompts the user to insert the specified inline query.
Optional Readonlyswitch_If set, pressing the button prompts the user to select a chat of the specified type.
Optional Readonlyswitch_If set, pressing the button inserts the specified inline query in the current chat.
ReadonlytextLabel text on the button.
Optional ReadonlyurlHTTP or tg:// URL to be opened when the button is pressed.
Optional Readonlyweb_Description of the Web App that will be launched when the user presses the button.
A single button on an InlineKeyboardMarkup.
Remarks
A class-based alternative to the InlineKeyboard fluent builder, for developers who prefer constructing keyboards as nested rows of
InlineKeyboardButtoninstances passed toInlineKeyboardMarkup. Both styles produce the same InlineKeyboardMarkup shape (a plain object literal shaped like InlineKeyboardButton works too) and can be freely mixed.Example
See
Telegram Bot API: InlineKeyboardButton