pub enum InlineKeyboardButtonType {
Url(InlineKeyboardButtonTypeUrl),
LoginUrl(InlineKeyboardButtonTypeLoginUrl),
WebApp(InlineKeyboardButtonTypeWebApp),
Callback(InlineKeyboardButtonTypeCallback),
CallbackWithPassword(InlineKeyboardButtonTypeCallbackWithPassword),
CallbackGame,
SwitchInline(InlineKeyboardButtonTypeSwitchInline),
Buy,
User(InlineKeyboardButtonTypeUser),
}
Variants§
Url(InlineKeyboardButtonTypeUrl)
A button that opens a specified URL
LoginUrl(InlineKeyboardButtonTypeLoginUrl)
A button that opens a specified URL and automatically authorize the current user by calling getLoginUrlInfo
WebApp(InlineKeyboardButtonTypeWebApp)
A button that opens a Web App by calling openWebApp
Callback(InlineKeyboardButtonTypeCallback)
A button that sends a callback query to a bot
CallbackWithPassword(InlineKeyboardButtonTypeCallbackWithPassword)
A button that asks for the 2-step verification password of the current user and then sends a callback query to a bot
CallbackGame
A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame
SwitchInline(InlineKeyboardButtonTypeSwitchInline)
A button that forces an inline query to the bot to be inserted in the input field
Buy
A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice
User(InlineKeyboardButtonTypeUser)
A button with a user reference to be handled in the same way as textEntityTypeMentionName entities
Trait Implementations§
Source§impl Clone for InlineKeyboardButtonType
impl Clone for InlineKeyboardButtonType
Source§fn clone(&self) -> InlineKeyboardButtonType
fn clone(&self) -> InlineKeyboardButtonType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more