Skip to content

InlineButton

Type · TDLib 1.8.67 · d1085f9c

Represents a button inside a rich message

InlineButton(
  text: RichText,
  style: ButtonStyle,
  type: InlineKeyboardButtonType
) → InlineButton

text

RichText

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

style

ButtonStyle

Style of the button

type

InlineKeyboardButtonType

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