all repos — telegram-bot-api @ 9b191dba1eb601279c9f804c5b6f2083426bbd83

Golang bindings for the Telegram Bot API

Merge pull request #221 from yauhen-l/bugfix-omitempty-size-in-inline-gif-result

Mark optional fields in InlineQueryResultGif as omitempty
Syfaro syfaro@huefox.com
Wed, 24 Apr 2019 02:32:30 -0500
commit

9b191dba1eb601279c9f804c5b6f2083426bbd83

parent

2f55ae3a3da4816c5084fd4a785b9741e7c706c1

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

jump to
M types.gotypes.go

@@ -652,15 +652,15 @@ }

// InlineQueryResultGIF is an inline query response GIF. 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"` - ThumbURL string `json:"thumb_url"` - Title string `json:"title"` - Caption string `json:"caption"` + Type string `json:"type"` // required + ID string `json:"id"` // required + URL string `json:"gif_url"` // required + ThumbURL string `json:"thumb_url"` // required + Width int `json:"gif_width,omitempty"` + Height int `json:"gif_height,omitempty"` + Duration int `json:"gif_duration,omitempty"` + Title string `json:"title,omitempty"` + Caption string `json:"caption,omitempty"` ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent interface{} `json:"input_message_content,omitempty"` }