Skip to main content

KeyboardButton

This is a boxed type (a TL class): the Go interface tg.KeyboardButtonClass, implemented by the constructors below. A value of this type is one of them — switch on the concrete type to handle it.

switch v := value.(type) {
case *tg.InputKeyboardButtonRequestPeer: // inputKeyboardButtonRequestPeer
case *tg.InputKeyboardButtonURLAuth: // inputKeyboardButtonUrlAuth
case *tg.InputKeyboardButtonUserProfile: // inputKeyboardButtonUserProfile
case *tg.KeyboardButton: // keyboardButton
case *tg.KeyboardButtonBuy: // keyboardButtonBuy
case *tg.KeyboardButtonCallback: // keyboardButtonCallback
case *tg.KeyboardButtonCopy: // keyboardButtonCopy
case *tg.KeyboardButtonGame: // keyboardButtonGame
case *tg.KeyboardButtonRequestGeoLocation: // keyboardButtonRequestGeoLocation
case *tg.KeyboardButtonRequestPeer: // keyboardButtonRequestPeer
case *tg.KeyboardButtonRequestPhone: // keyboardButtonRequestPhone
case *tg.KeyboardButtonRequestPoll: // keyboardButtonRequestPoll
case *tg.KeyboardButtonSimpleWebView: // keyboardButtonSimpleWebView
case *tg.KeyboardButtonSwitchInline: // keyboardButtonSwitchInline
case *tg.KeyboardButtonURL: // keyboardButtonUrl
case *tg.KeyboardButtonURLAuth: // keyboardButtonUrlAuth
case *tg.KeyboardButtonUserProfile: // keyboardButtonUserProfile
case *tg.KeyboardButtonWebView: // keyboardButtonWebView
}

Constructors

ConstructorTL name
InputKeyboardButtonRequestPeerinputKeyboardButtonRequestPeer
InputKeyboardButtonURLAuthinputKeyboardButtonUrlAuth
InputKeyboardButtonUserProfileinputKeyboardButtonUserProfile
KeyboardButtonkeyboardButton
KeyboardButtonBuykeyboardButtonBuy
KeyboardButtonCallbackkeyboardButtonCallback
KeyboardButtonCopykeyboardButtonCopy
KeyboardButtonGamekeyboardButtonGame
KeyboardButtonRequestGeoLocationkeyboardButtonRequestGeoLocation
KeyboardButtonRequestPeerkeyboardButtonRequestPeer
KeyboardButtonRequestPhonekeyboardButtonRequestPhone
KeyboardButtonRequestPollkeyboardButtonRequestPoll
KeyboardButtonSimpleWebViewkeyboardButtonSimpleWebView
KeyboardButtonSwitchInlinekeyboardButtonSwitchInline
KeyboardButtonURLkeyboardButtonUrl
KeyboardButtonURLAuthkeyboardButtonUrlAuth
KeyboardButtonUserProfilekeyboardButtonUserProfile
KeyboardButtonWebViewkeyboardButtonWebView

Returned by

References