KeyboardButtonType
public indirect enum KeyboardButtonType : Codable, Equatable, FunctionResult, TDEnum, EquatableEnum
Describes a keyboard button type
-
A simple button, with text that should be sent when the button is pressed
Declaration
Swift
case text
-
A button that sends the user’s phone number when pressed; available only in private chats
Declaration
Swift
case requestPhoneNumber
-
A button that sends the user’s location when pressed; available only in private chats
Declaration
Swift
case requestLocation
-
A button that allows the user to create and send a poll when pressed; available only in private chats
- forceRegular: If true, only regular polls must be allowed to create
- forceQuiz: If true, only polls in quiz mode must be allowed to create
Declaration
Swift
case requestPoll(forceRegular: Bool, forceQuiz: Bool)