haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.KeyboardButtonType

Synopsis

Documentation

data KeyboardButtonType Source #

Describes a keyboard button type

Constructors

KeyboardButtonTypeText

A simple button, with text that must be sent when the button is pressed

KeyboardButtonTypeRequestPhoneNumber

A button that sends the user's phone number when pressed; available only in private chats

KeyboardButtonTypeRequestLocation

A button that sends the user's location when pressed; available only in private chats

KeyboardButtonTypeRequestPoll

A button that allows the user to create and send a poll when pressed; available only in private chats

Fields

KeyboardButtonTypeRequestUsers

A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request

Fields

KeyboardButtonTypeRequestChat

A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request

Fields

KeyboardButtonTypeWebApp

A button that opens a Web App by calling getWebAppUrl

Fields