mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-30 12:24:52 +00:00
Add missing await
This commit is contained in:
parent
c929ce3097
commit
353811ebd3
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue