@@ -281,15 +281,10 @@ type InlineQuery struct {
281281 Offset string `json:"offset"`
282282}
283283
284- // InlineQueryResult is the base type that all InlineQuery Results have.
285- type InlineQueryResult struct {
286- Type string `json:"type"` // required
287- ID string `json:"id"` // required
288- }
289-
290284// InlineQueryResultArticle is an inline query response article.
291285type InlineQueryResultArticle struct {
292- InlineQueryResult
286+ Type string `json:"type"` // required
287+ ID string `json:"id"` // required
293288 Title string `json:"title"` // required
294289 MessageText string `json:"message_text"` // required
295290 ParseMode string `json:"parse_mode"`
@@ -304,7 +299,8 @@ type InlineQueryResultArticle struct {
304299
305300// InlineQueryResultPhoto is an inline query response photo.
306301type InlineQueryResultPhoto struct {
307- InlineQueryResult
302+ Type string `json:"type"` // required
303+ ID string `json:"id"` // required
308304 URL string `json:"photo_url"` // required
309305 MimeType string `json:"mime_type"`
310306 Width int `json:"photo_width"`
@@ -320,7 +316,8 @@ type InlineQueryResultPhoto struct {
320316
321317// InlineQueryResultGIF is an inline query response GIF.
322318type InlineQueryResultGIF struct {
323- InlineQueryResult
319+ Type string `json:"type"` // required
320+ ID string `json:"id"` // required
324321 URL string `json:"gif_url"` // required
325322 Width int `json:"gif_width"`
326323 Height int `json:"gif_height"`
@@ -334,7 +331,8 @@ type InlineQueryResultGIF struct {
334331
335332// InlineQueryResultMPEG4GIF is an inline query response MPEG4 GIF.
336333type InlineQueryResultMPEG4GIF struct {
337- InlineQueryResult
334+ Type string `json:"type"` // required
335+ ID string `json:"id"` // required
338336 URL string `json:"mpeg4_url"` // required
339337 Width int `json:"mpeg4_width"`
340338 Height int `json:"mpeg4_height"`
@@ -348,7 +346,8 @@ type InlineQueryResultMPEG4GIF struct {
348346
349347// InlineQueryResultVideo is an inline query response video.
350348type InlineQueryResultVideo struct {
351- InlineQueryResult
349+ Type string `json:"type"` // required
350+ ID string `json:"id"` // required
352351 URL string `json:"video_url"` // required
353352 MimeType string `json:"mime_type"` // required
354353 MessageText string `json:"message_text"` // required
0 commit comments