From 353811ebd3afb65d442a807de6e4e7a2a112f47e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 6 Dec 2019 21:14:15 +0100 Subject: [PATCH] Add missing await --- pyrogram/client/methods/chats/set_chat_photo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/client/methods/chats/set_chat_photo.py b/pyrogram/client/methods/chats/set_chat_photo.py index df67923e..4c912475 100644 --- a/pyrogram/client/methods/chats/set_chat_photo.py +++ b/pyrogram/client/methods/chats/set_chat_photo.py @@ -59,7 +59,7 @@ class SetChatPhoto(BaseClient): peer = await self.resolve_peer(chat_id) if os.path.exists(photo): - photo = types.InputChatUploadedPhoto(file=self.save_file(photo)) + photo = types.InputChatUploadedPhoto(file=await self.save_file(photo)) else: photo = utils.get_input_media_from_file_id(photo) photo = types.InputChatPhoto(id=photo.id)