Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.InlineKeyboardButtonType
Synopsis
- data InlineKeyboardButtonType
- = InlineKeyboardButtonTypeUrl { }
- | InlineKeyboardButtonTypeLoginUrl { }
- | InlineKeyboardButtonTypeWebApp { }
- | InlineKeyboardButtonTypeCallback {
- _data :: Maybe ByteString
- | InlineKeyboardButtonTypeCallbackWithPassword {
- _data :: Maybe ByteString
- | InlineKeyboardButtonTypeCallbackGame
- | InlineKeyboardButtonTypeSwitchInline {
- query :: Maybe Text
- target_chat :: Maybe TargetChat
- | InlineKeyboardButtonTypeBuy
- | InlineKeyboardButtonTypeUser { }
- | InlineKeyboardButtonTypeCopyText { }
Documentation
data InlineKeyboardButtonType Source #
Describes the type of inline keyboard button
Constructors
InlineKeyboardButtonTypeUrl | A button that opens a specified URL |
InlineKeyboardButtonTypeLoginUrl | A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo |
InlineKeyboardButtonTypeWebApp | A button that opens a Web App by calling openWebApp |
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 |
InlineKeyboardButtonTypeCopyText | A button that copies specified text to clipboard |