From 511cc7406df899a3b8f4dfd2dc314272013a6c04 Mon Sep 17 00:00:00 2001 From: Slava Date: Sat, 9 Apr 2016 21:30:16 +0100 Subject: [PATCH] Fix UserProfilePhotos type Photos field should be Array of Array of PhotoSize. --- types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types.go b/types.go index 2b9e7f4..72a787c 100644 --- a/types.go +++ b/types.go @@ -234,8 +234,8 @@ type Location struct { // UserProfilePhotos contains a set of user profile photos. type UserProfilePhotos struct { - TotalCount int `json:"total_count"` - Photos []PhotoSize `json:"photos"` + TotalCount int `json:"total_count"` + Photos [][]PhotoSize `json:"photos"` } // File contains information about a file to download from Telegram.