From 68986171efdcf1c00c034a48e08607f5ca57991d Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 5 May 2018 18:11:14 +0200 Subject: [PATCH] Add photo_id --- pyrogram/client/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/utils.py b/pyrogram/client/utils.py index 211e03b5..3c52f65f 100644 --- a/pyrogram/client/utils.py +++ b/pyrogram/client/utils.py @@ -74,19 +74,20 @@ def parse_chat_photo(photo): if not isinstance(photo.photo_big, types.FileLocation): return None + photo_id = getattr(photo, "photo_id", 0) loc_small = photo.photo_small loc_big = photo.photo_big return pyrogram_types.ChatPhoto( small_file_id=encode( pack( - "