Add more omitempty.

bot-api-6.1
Syfaro 2016-04-14 13:21:26 -05:00
parent c0eb5db6c3
commit e8e55fe41a
1 changed files with 3 additions and 3 deletions

View File

@ -316,9 +316,9 @@ type InlineKeyboardMarkup struct {
// will change behavior.
type InlineKeyboardButton struct {
Text string `json:"text"`
URL *string `json:"url"` // optional
CallbackData *string `json:"callback_data"` // optional
SwitchInlineQuery *string `json:"switch_inline_query"` // optional
URL *string `json:"url,omitempty"` // optional
CallbackData *string `json:"callback_data,omitempty"` // optional
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"` // optional
}
// CallbackQuery is data sent when a keyboard button with callback data