|
|
@ -473,6 +473,7 @@ type InlineKeyboardMarkup struct { |
|
|
|
type InlineKeyboardButton struct { |
|
|
|
type InlineKeyboardButton struct { |
|
|
|
Text string `json:"text"` |
|
|
|
Text string `json:"text"` |
|
|
|
URL *string `json:"url,omitempty"` // optional
|
|
|
|
URL *string `json:"url,omitempty"` // optional
|
|
|
|
|
|
|
|
LoginUrl *LoginUrl `json:"url,omitempty"` // optional
|
|
|
|
CallbackData *string `json:"callback_data,omitempty"` // optional
|
|
|
|
CallbackData *string `json:"callback_data,omitempty"` // optional
|
|
|
|
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
|
|
|
|
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
|
|
|
|
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"` // optional
|
|
|
|
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"` // optional
|
|
|
@ -480,6 +481,14 @@ type InlineKeyboardButton struct { |
|
|
|
Pay bool `json:"pay,omitempty"` // optional
|
|
|
|
Pay bool `json:"pay,omitempty"` // optional
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//LoginUrl
|
|
|
|
|
|
|
|
type LoginUrl struct { |
|
|
|
|
|
|
|
URL string `json:"url"` |
|
|
|
|
|
|
|
ForwardText *string `json:"forward_text,omitempty"` |
|
|
|
|
|
|
|
BotUsername *string `json:"bot_username,omitempty"` |
|
|
|
|
|
|
|
RequestWriteAccess *bool `json:"request_write_access,omitempty"` |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// CallbackQuery is data sent when a keyboard button with callback data
|
|
|
|
// CallbackQuery is data sent when a keyboard button with callback data
|
|
|
|
// is clicked.
|
|
|
|
// is clicked.
|
|
|
|
type CallbackQuery struct { |
|
|
|
type CallbackQuery struct { |
|
|
|