From 74b2a532930711f82a5ceb2d1d92adeeb4992131 Mon Sep 17 00:00:00 2001 From: Yauhen Lazurkin Date: Thu, 24 Jan 2019 09:39:10 +0100 Subject: [PATCH] Mark optional fields in InlineQueryResultGif as omitempty to not send zeros --- types.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types.go b/types.go index c6cd642..9b43f83 100644 --- a/types.go +++ b/types.go @@ -604,9 +604,9 @@ type InlineQueryResultGIF struct { Type string `json:"type"` // required ID string `json:"id"` // required URL string `json:"gif_url"` // required - Width int `json:"gif_width"` - Height int `json:"gif_height"` - Duration int `json:"gif_duration"` + Width int `json:"gif_width,omitempty"` + Height int `json:"gif_height,omitempty"` + Duration int `json:"gif_duration,omitempty"` ThumbURL string `json:"thumb_url"` Title string `json:"title"` Caption string `json:"caption"`