InlineButton¶
Represents a button inside a rich message
InlineButton(
text: RichText,
style: ButtonStyle,
type: InlineKeyboardButtonType
) → InlineButton
text¶
Text of the button; only richTexts, richTextPlain, and richTextCustomEmoji are allowed
style¶
Style of the button
type¶
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