Skip to content

Commit 2497684

Browse files
Add location, venue and user profile photos type documentation
1 parent 1b84517 commit 2497684

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

types.go

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -613,22 +613,31 @@ type Contact struct {
613613

614614
// Location contains information about a place.
615615
type Location struct {
616+
// Longitude as defined by sender
616617
Longitude float64 `json:"longitude"`
617-
Latitude float64 `json:"latitude"`
618+
// Latitude as defined by sender
619+
Latitude float64 `json:"latitude"`
618620
}
619621

620622
// Venue contains information about a venue, including its Location.
621623
type Venue struct {
622-
Location Location `json:"location"`
623-
Title string `json:"title"`
624-
Address string `json:"address"`
625-
FoursquareID string `json:"foursquare_id"` // optional
624+
// Location venue location
625+
Location Location `json:"location"`
626+
// Title name of the venue
627+
Title string `json:"title"`
628+
// Address of the venue
629+
Address string `json:"address"`
630+
// FoursquareID foursquare identifier of the venue
631+
// optional
632+
FoursquareID string `json:"foursquare_id"`
626633
}
627634

628635
// UserProfilePhotos contains a set of user profile photos.
629636
type UserProfilePhotos struct {
630-
TotalCount int `json:"total_count"`
631-
Photos [][]PhotoSize `json:"photos"`
637+
// TotalCount total number of profile pictures the target user has
638+
TotalCount int `json:"total_count"`
639+
// Photos requested profile pictures (in up to 4 sizes each)
640+
Photos [][]PhotoSize `json:"photos"`
632641
}
633642

634643
// File contains information about a file to download from Telegram.

0 commit comments

Comments
 (0)