Interface InlineButton

Represents a button inside a rich message.

interface InlineButton {
    @type: "inlineButton";
    style: ButtonStyle;
    text: RichText;
    type: InlineKeyboardButtonType;
}

Properties

Properties

@type: "inlineButton"

Style of the button.

text: RichText

Text of the button; only richTexts, richTextPlain, and richTextCustomEmoji are allowed.

Type of the button; must be one of inlineKeyboardButtonTypeUrl, inlineKeyboardButtonTypeLoginUrl, inlineKeyboardButtonTypeWebApp, inlineKeyboardButtonTypeCallback, inlineKeyboardButtonTypeSwitchInline, inlineKeyboardButtonTypeUser, inlineKeyboardButtonTypeCopyText. Additionally, inlineKeyboardButtonTypeCallbackWithPassword and inlineKeyboardButtonTypeDisabled may be received in incoming messages. Regular users may use only inlineKeyboardButtonTypeUrl, inlineKeyboardButtonTypeUser and inlineKeyboardButtonTypeCopyText.