haskell-tdlib-2.1.24.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.InlineButton

Documentation

data InlineButton Source #

Constructors

InlineButton

Represents a button inside a rich message

Fields

  • text :: Maybe RichText

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

  • style :: Maybe ButtonStyle

    Style of the button

  • _type :: Maybe 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