From 0011d12be50ce3e086971be28e65a15bb567ed9b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 21 Aug 2019 09:56:33 +0200 Subject: [PATCH] Fix set_chat_photo not working because of new file ids --- pyrogram/client/methods/chats/set_chat_photo.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pyrogram/client/methods/chats/set_chat_photo.py b/pyrogram/client/methods/chats/set_chat_photo.py index 71cd6590..c97f7a3c 100644 --- a/pyrogram/client/methods/chats/set_chat_photo.py +++ b/pyrogram/client/methods/chats/set_chat_photo.py @@ -17,7 +17,6 @@ # along with Pyrogram. If not, see . import os -from struct import unpack from typing import Union from pyrogram.api import functions, types @@ -62,15 +61,8 @@ class SetChatPhoto(BaseClient): if os.path.exists(photo): photo = types.InputChatUploadedPhoto(file=self.save_file(photo)) else: - unpacked = unpack("