From e8e55fe41afff8dddf382ee20b4d9d7aadf66266 Mon Sep 17 00:00:00 2001 From: Syfaro Date: Thu, 14 Apr 2016 13:21:26 -0500 Subject: [PATCH] Add more omitempty. --- types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index bb0793f..d9edef2 100644 --- a/types.go +++ b/types.go @@ -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