From 8d063242acc8c747929f8307b60b25e9843d5667 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 9 Jun 2017 16:12:40 +0300 Subject: [PATCH] Array of array PhotoSize --- aiogram/types/user_profile_photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/types/user_profile_photos.py b/aiogram/types/user_profile_photos.py index cb4f5fd7..e32a0721 100644 --- a/aiogram/types/user_profile_photos.py +++ b/aiogram/types/user_profile_photos.py @@ -17,6 +17,6 @@ class UserProfilePhotos(Deserializable): raw_data = cls.check_json(raw_data) total_count = raw_data.get('total_count') - photos = PhotoSize.deserialize(raw_data.get('photos')) + photos = [PhotoSize.deserialize(item) for item in raw_data.get('photos')] return UserProfilePhotos(total_count, photos)