From abbf7e6684a4a987fcc21e1e6acdba105429e363 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 28 Jun 2018 19:08:21 +0200 Subject: [PATCH] Use Photo as type for UserProfilePhotos photos list --- pyrogram/client/ext/utils.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index 2b66aeb9..3f287b49 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -815,13 +815,25 @@ def parse_profile_photos(photos): ), width=size.w, height=size.h, - file_size=file_size, - date=photo.date + file_size=file_size ) photo_sizes.append(photo_size) - user_profile_photos.append(photo_sizes) + user_profile_photos.append( + pyrogram_types.Photo( + id=b64encode( + pack( + "