@@ -1578,34 +1578,57 @@ type ChosenInlineResult struct {
1578
1578
// InputTextMessageContent contains text for displaying
1579
1579
// as an inline query result.
1580
1580
type InputTextMessageContent struct {
1581
- Text string `json:"message_text"`
1582
- ParseMode string `json:"parse_mode"`
1583
- DisableWebPagePreview bool `json:"disable_web_page_preview"`
1581
+ // Text of the message to be sent, 1-4096 characters
1582
+ Text string `json:"message_text"`
1583
+ // ParseMode mode for parsing entities in the message text.
1584
+ // See formatting options for more details
1585
+ // (https://core.telegram.org/bots/api#formatting-options).
1586
+ //
1587
+ // optional
1588
+ ParseMode string `json:"parse_mode"`
1589
+ // DisableWebPagePreview disables link previews for links in the sent message
1590
+ //
1591
+ // optional
1592
+ DisableWebPagePreview bool `json:"disable_web_page_preview"`
1584
1593
}
1585
1594
1586
1595
// InputLocationMessageContent contains a location for displaying
1587
1596
// as an inline query result.
1588
1597
type InputLocationMessageContent struct {
1589
- Latitude float64 `json:"latitude"`
1598
+ // Latitude of the location in degrees
1599
+ Latitude float64 `json:"latitude"`
1600
+ // Longitude of the location in degrees
1590
1601
Longitude float64 `json:"longitude"`
1591
1602
}
1592
1603
1593
1604
// InputVenueMessageContent contains a venue for displaying
1594
1605
// as an inline query result.
1595
1606
type InputVenueMessageContent struct {
1596
- Latitude float64 `json:"latitude"`
1597
- Longitude float64 `json:"longitude"`
1598
- Title string `json:"title"`
1599
- Address string `json:"address"`
1600
- FoursquareID string `json:"foursquare_id"`
1607
+ // Latitude of the venue in degrees
1608
+ Latitude float64 `json:"latitude"`
1609
+ // Longitude of the venue in degrees
1610
+ Longitude float64 `json:"longitude"`
1611
+ // Title name of the venue
1612
+ Title string `json:"title"`
1613
+ // Address of the venue
1614
+ Address string `json:"address"`
1615
+ // FoursquareID foursquare identifier of the venue, if known
1616
+ //
1617
+ // optional
1618
+ FoursquareID string `json:"foursquare_id"`
1601
1619
}
1602
1620
1603
1621
// InputContactMessageContent contains a contact for displaying
1604
1622
// as an inline query result.
1605
1623
type InputContactMessageContent struct {
1624
+ // PhoneNumber contact's phone number
1606
1625
PhoneNumber string `json:"phone_number"`
1607
- FirstName string `json:"first_name"`
1608
- LastName string `json:"last_name"`
1626
+ // FirstName contact's first name
1627
+ FirstName string `json:"first_name"`
1628
+ // LastName contact's last name
1629
+ //
1630
+ // optional
1631
+ LastName string `json:"last_name"`
1609
1632
}
1610
1633
1611
1634
// Invoice contains basic information about an invoice.
0 commit comments