all repos — telegram-bot-api @ e8e55fe41afff8dddf382ee20b4d9d7aadf66266

Golang bindings for the Telegram Bot API

Add more omitempty.
Syfaro syfaro@foxpaw.in
Thu, 14 Apr 2016 13:21:26 -0500
commit

e8e55fe41afff8dddf382ee20b4d9d7aadf66266

parent

c0eb5db6c3f5289bcbb06bdd0e68ef5ea6216371

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M types.gotypes.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