Add more omitempty.
Syfaro syfaro@foxpaw.in
Thu, 14 Apr 2016 13:21:26 -0500
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
types.go
→
types.go
@@ -316,9 +316,9 @@ // Note that some values are references as even an empty string
// 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