Layer 227
KeyboardButton
Abstract type representing one of 18 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.KeyboardButton interface.
Use any of the following constructors:
InputKeyboardButtonRequestPeer
Prompts the user to select and share one or more peers with the bot using messages. send Bot Requested P
InputKeyboardButtonUrlAuth
Button to request a user to authorize via URL using Seamless Telegram Login.
InputKeyboardButtonUserProfile
Button that links directly to a user profile
KeyboardButton
Bot keyboard button
KeyboardButtonBuy
Button to buy a product
KeyboardButtonCallback
Callback button
KeyboardButtonCopy
Clipboard button
KeyboardButtonGame
Button to start a game
KeyboardButtonRequestGeoLocation
Button to request a user's geolocation
KeyboardButtonRequestPeer
Prompts the user to select and share one or more peers with the bot using messages. send Bot Requested P
KeyboardButtonRequestPhone
Button to request a user's phone number
KeyboardButtonRequestPoll
Button to request a poll from the user
KeyboardButtonSimpleWebView
Button to open a bot mini app using messages. request Simple Web View, without sending user information
KeyboardButtonSwitchInline
Button to switch the user to inline mode
KeyboardButtonUrl
URL button
KeyboardButtonUrlAuth
Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks o
KeyboardButtonUserProfile
Button that links directly to a user profile
KeyboardButtonWebView
Button to open a bot mini app using messages. request Web View, sending over user information after us
Gogram Example
// KeyboardButton is an interface type // You can use any of the following constructors: var _ tg.KeyboardButton = &tg.InputKeyboardButtonRequestPeer{} var _ tg.KeyboardButton = &tg.InputKeyboardButtonUrlAuth{} var _ tg.KeyboardButton = &tg.InputKeyboardButtonUserProfile{} var _ tg.KeyboardButton = &tg.KeyboardButton{} var _ tg.KeyboardButton = &tg.KeyboardButtonBuy{} // ... and 13 more constructors