haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.InlineKeyboardButtonType

Synopsis

Documentation

data InlineKeyboardButtonType Source #

Describes the type of inline keyboard button

Constructors

InlineKeyboardButtonTypeUrl

A button that opens a specified URL

Fields

  • url :: Maybe Text

    HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button

InlineKeyboardButtonTypeLoginUrl

A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo

Fields

  • url :: Maybe Text

    HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button

  • _id :: Maybe Int

    Unique button identifier

  • forward_text :: Maybe Text

    If non-empty, new text of the button in forwarded messages

InlineKeyboardButtonTypeWebApp

A button that opens a Web App by calling openWebApp

Fields

  • url :: Maybe Text

    HTTP or tg:// URL to open. If the link is of the type internalLinkTypeWebApp, then the button must be marked as a Web App button

InlineKeyboardButtonTypeCallback

A button that sends a callback query to a bot

Fields

InlineKeyboardButtonTypeCallbackWithPassword

A button that asks for the 2-step verification password of the current user and then sends a callback query to a bot

Fields

InlineKeyboardButtonTypeCallbackGame

A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame

InlineKeyboardButtonTypeSwitchInline

A button that forces an inline query to the bot to be inserted in the input field

Fields

InlineKeyboardButtonTypeBuy

A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice

InlineKeyboardButtonTypeUser

A button with a user reference to be handled in the same way as textEntityTypeMentionName entities

Fields

InlineKeyboardButtonTypeCopyText

A button that copies specified text to clipboard

Fields