From b8bfb43a80edda5f972003cbbdb5b1ab910cdd0d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 28 Jun 2018 19:07:56 +0200 Subject: [PATCH] Use Photo as type for new_chat_photo --- pyrogram/client/ext/utils.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index 105d0f0c..2b66aeb9 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -674,13 +674,23 @@ def parse_messages( ), width=size.w, height=size.h, - file_size=file_size, - date=photo.date + file_size=file_size ) photo_sizes.append(photo_size) - new_chat_photo = photo_sizes + new_chat_photo = pyrogram_types.Photo( + id=b64encode( + pack( + "