Merge pull request #65 from sschepens/fix_inline_keyboard_button

Fix InlineKeyboardButton type
bot-api-6.1
Syfaro 2016-12-31 13:45:25 -06:00 committed by GitHub
commit d74d1f3472
1 changed files with 5 additions and 5 deletions

View File

@ -356,11 +356,11 @@ type InlineKeyboardMarkup struct {
// CallbackGame, if set, MUST be first button in first row.
type InlineKeyboardButton struct {
Text string `json:"text"`
URL *string `json:"url,omitempty"` // optional
CallbackData *string `json:"callback_data,omitempty"` // optional
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat"` // optional
CallbackGame *CallbackGame `json:"callback_game"` // optional
URL *string `json:"url,omitempty"` // optional
CallbackData *string `json:"callback_data,omitempty"` // optional
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"` // optional
CallbackGame *CallbackGame `json:"callback_game,omitempty"` // optional
}
// CallbackQuery is data sent when a keyboard button with callback data