Skip to content

Commit 511cc74

Browse files
committed
Fix UserProfilePhotos type
Photos field should be Array of Array of PhotoSize.
1 parent b971c58 commit 511cc74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ type Location struct {
234234

235235
// UserProfilePhotos contains a set of user profile photos.
236236
type UserProfilePhotos struct {
237-
TotalCount int `json:"total_count"`
238-
Photos []PhotoSize `json:"photos"`
237+
TotalCount int `json:"total_count"`
238+
Photos [][]PhotoSize `json:"photos"`
239239
}
240240

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

0 commit comments

Comments
 (0)