mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-04 08:15:08 +00:00
Add missing await
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user