mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +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)
|
peer = await self.resolve_peer(chat_id)
|
||||||
|
|
||||||
if os.path.exists(photo):
|
if os.path.exists(photo):
|
||||||
photo = types.InputChatUploadedPhoto(file=self.save_file(photo))
|
photo = types.InputChatUploadedPhoto(file=await self.save_file(photo))
|
||||||
else:
|
else:
|
||||||
photo = utils.get_input_media_from_file_id(photo)
|
photo = utils.get_input_media_from_file_id(photo)
|
||||||
photo = types.InputChatPhoto(id=photo.id)
|
photo = types.InputChatPhoto(id=photo.id)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue