Layer 231
InlineButtonType
The type of an inline keyboard button: URL, callback, game, buy, URL login, switch to inline mode, user profile, mini app, copy text or a disabled button. The input variants are used when creating buttons.
Type
Available Constructors
In Gogram, this type is represented as tg.InlineButtonType interface.
Use any of the following constructors:
InlineButtonTypeBuy
Inline button that starts the payment for the invoice in the message.
InlineButtonTypeCallback
Inline button that sends a callback query with the given data to the bot.
InlineButtonTypeCopy
Inline button that copies the given text to the clipboard.
InlineButtonTypeDisabled
Inline button that is shown but cannot be pressed.
InlineButtonTypeGame
Inline button that starts the game in the message.
InlineButtonTypeSwitchInline
Inline button that inserts the bot's username and a query into an input field to start an inline que
InlineButtonTypeUrl
Inline button that opens a URL.
InlineButtonTypeUrlAuth
Inline button that opens a URL after authorizing the user on the website via Telegram Login.
InlineButtonTypeUserProfile
Inline button that opens a user's profile.
InlineButtonTypeWebView
Inline button that opens a web view (Mini App).
InputInlineButtonTypeUrlAuth
Inline button that authorizes the user on a website via Telegram Login, as passed when creating a ke
InputInlineButtonTypeUserProfile
Inline button that opens a user's profile, as passed when creating a keyboard.
Gogram Example
// InlineButtonType is an interface type // You can use any of the following constructors: var _ tg.InlineButtonType = &tg.InlineButtonTypeBuy{} var _ tg.InlineButtonType = &tg.InlineButtonTypeCallback{} var _ tg.InlineButtonType = &tg.InlineButtonTypeCopy{} var _ tg.InlineButtonType = &tg.InlineButtonTypeDisabled{} var _ tg.InlineButtonType = &tg.InlineButtonTypeGame{} // ... and 7 more constructors