Merge pull request #221 from yauhen-l/bugfix-omitempty-size-in-inline-gif-result
Mark optional fields in InlineQueryResultGif as omitemptybot-api-6.1
commit
9b191dba1e
18
types.go
18
types.go
|
@ -652,15 +652,15 @@ type InlineQueryResultCachedPhoto struct {
|
||||||
|
|
||||||
// InlineQueryResultGIF is an inline query response GIF.
|
// InlineQueryResultGIF is an inline query response GIF.
|
||||||
type InlineQueryResultGIF struct {
|
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"`
|
ThumbURL string `json:"thumb_url"` // required
|
||||||
Height int `json:"gif_height"`
|
Width int `json:"gif_width,omitempty"`
|
||||||
Duration int `json:"gif_duration"`
|
Height int `json:"gif_height,omitempty"`
|
||||||
ThumbURL string `json:"thumb_url"`
|
Duration int `json:"gif_duration,omitempty"`
|
||||||
Title string `json:"title"`
|
Title string `json:"title,omitempty"`
|
||||||
Caption string `json:"caption"`
|
Caption string `json:"caption,omitempty"`
|
||||||
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
|
||||||
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
InputMessageContent interface{} `json:"input_message_content,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue