Mark optional fields in InlineQueryResultGif as omitempty to not send zeros

bot-api-6.1
Yauhen Lazurkin 2019-01-24 09:39:10 +01:00
parent ec221ba9ea
commit 74b2a53293
1 changed files with 3 additions and 3 deletions

View File

@ -604,9 +604,9 @@ type InlineQueryResultGIF struct {
Type string `json:"type"` // required Type string `json:"type"` // required
ID string `json:"id"` // required ID string `json:"id"` // required
URL string `json:"gif_url"` // required URL string `json:"gif_url"` // required
Width int `json:"gif_width"` Width int `json:"gif_width,omitempty"`
Height int `json:"gif_height"` Height int `json:"gif_height,omitempty"`
Duration int `json:"gif_duration"` Duration int `json:"gif_duration,omitempty"`
ThumbURL string `json:"thumb_url"` ThumbURL string `json:"thumb_url"`
Title string `json:"title"` Title string `json:"title"`
Caption string `json:"caption"` Caption string `json:"caption"`