@@ -1436,41 +1436,123 @@ type InlineQueryResultCachedDocument struct {
14361436
14371437// InlineQueryResultLocation is an inline query response location.
14381438type InlineQueryResultLocation struct {
1439- Type string `json:"type"` // required
1440- ID string `json:"id"` // required
1441- Latitude float64 `json:"latitude"` // required
1442- Longitude float64 `json:"longitude"` // required
1443- Title string `json:"title"` // required
1444- ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1445- InputMessageContent interface {} `json:"input_message_content,omitempty"`
1446- ThumbURL string `json:"thumb_url"`
1447- ThumbWidth int `json:"thumb_width"`
1448- ThumbHeight int `json:"thumb_height"`
1439+ // Type of the result, must be location
1440+ //
1441+ // required
1442+ Type string `json:"type"`
1443+ // ID unique identifier for this result, 1-64 Bytes
1444+ //
1445+ // required
1446+ ID string `json:"id"`
1447+ // Latitude of the location in degrees
1448+ //
1449+ // required
1450+ Latitude float64 `json:"latitude"`
1451+ // Longitude of the location in degrees
1452+ //
1453+ // required
1454+ Longitude float64 `json:"longitude"`
1455+ // Title of the location
1456+ //
1457+ // required
1458+ Title string `json:"title"`
1459+ // ReplyMarkup inline keyboard attached to the message
1460+ //
1461+ // optional
1462+ ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1463+ // InputMessageContent content of the message to be sent instead of the location
1464+ //
1465+ // optional
1466+ InputMessageContent interface {} `json:"input_message_content,omitempty"`
1467+ // ThumbURL url of the thumbnail for the result
1468+ //
1469+ // optional
1470+ ThumbURL string `json:"thumb_url"`
1471+ // ThumbWidth thumbnail width
1472+ //
1473+ // optional
1474+ ThumbWidth int `json:"thumb_width"`
1475+ // ThumbHeight thumbnail height
1476+ //
1477+ // optional
1478+ ThumbHeight int `json:"thumb_height"`
14491479}
14501480
14511481// InlineQueryResultVenue is an inline query response venue.
14521482type InlineQueryResultVenue struct {
1453- Type string `json:"type"` // required
1454- ID string `json:"id"` // required
1455- Latitude float64 `json:"latitude"` // required
1456- Longitude float64 `json:"longitude"` // required
1457- Title string `json:"title"` // required
1458- Address string `json:"address"` // required
1459- FoursquareID string `json:"foursquare_id"`
1460- FoursquareType string `json:"foursquare_type"`
1461- ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1462- InputMessageContent interface {} `json:"input_message_content,omitempty"`
1463- ThumbURL string `json:"thumb_url"`
1464- ThumbWidth int `json:"thumb_width"`
1465- ThumbHeight int `json:"thumb_height"`
1483+ // Type of the result, must be venue
1484+ //
1485+ // required
1486+ Type string `json:"type"`
1487+ // ID unique identifier for this result, 1-64 Bytes
1488+ //
1489+ // required
1490+ ID string `json:"id"`
1491+ // Latitude of the venue location in degrees
1492+ //
1493+ // required
1494+ Latitude float64 `json:"latitude"`
1495+ // Longitude of the venue location in degrees
1496+ //
1497+ // required
1498+ Longitude float64 `json:"longitude"`
1499+ // Title of the venue
1500+ //
1501+ // required
1502+ Title string `json:"title"`
1503+ // Address of the venue
1504+ //
1505+ // required
1506+ Address string `json:"address"`
1507+ // FoursquareID foursquare identifier of the venue if known
1508+ //
1509+ // optional
1510+ FoursquareID string `json:"foursquare_id"`
1511+ // FoursquareType foursquare type of the venue, if known.
1512+ // (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
1513+ //
1514+ // optional
1515+ FoursquareType string `json:"foursquare_type"`
1516+ // ReplyMarkup inline keyboard attached to the message
1517+ //
1518+ // optional
1519+ ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1520+ // InputMessageContent content of the message to be sent instead of the venue
1521+ //
1522+ // optional
1523+ InputMessageContent interface {} `json:"input_message_content,omitempty"`
1524+ // ThumbURL url of the thumbnail for the result
1525+ //
1526+ // optional
1527+ ThumbURL string `json:"thumb_url"`
1528+ // ThumbWidth thumbnail width
1529+ //
1530+ // optional
1531+ ThumbWidth int `json:"thumb_width"`
1532+ // ThumbHeight thumbnail height
1533+ //
1534+ // optional
1535+ ThumbHeight int `json:"thumb_height"`
14661536}
14671537
14681538// InlineQueryResultGame is an inline query response game.
14691539type InlineQueryResultGame struct {
1470- Type string `json:"type"`
1471- ID string `json:"id"`
1472- GameShortName string `json:"game_short_name"`
1473- ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
1540+ // Type of the result, must be game
1541+ //
1542+ // required
1543+ Type string `json:"type"`
1544+ // ID unique identifier for this result, 1-64 bytes
1545+ //
1546+ // required
1547+ ID string `json:"id"`
1548+ // GameShortName short name of the game
1549+ //
1550+ // required
1551+ GameShortName string `json:"game_short_name"`
1552+ // ReplyMarkup inline keyboard attached to the message
1553+ //
1554+ // optional
1555+ ReplyMarkup * InlineKeyboardMarkup `json:"reply_markup,omitempty"`
14741556}
14751557
14761558// ChosenInlineResult is an inline query result chosen by a User
0 commit comments