mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-30 12:24:52 +00:00
Add missing awaits
This commit is contained in:
parent
313bf8952f
commit
1dd3ba4133
1 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ from ...ext import BaseClient
|
|||
|
||||
|
||||
class SetUserProfilePhoto(BaseClient):
|
||||
def set_user_profile_photo(
|
||||
async def set_user_profile_photo(
|
||||
self,
|
||||
photo: str
|
||||
) -> bool:
|
||||
|
|
@ -43,9 +43,9 @@ class SetUserProfilePhoto(BaseClient):
|
|||
"""
|
||||
|
||||
return bool(
|
||||
self.send(
|
||||
await self.send(
|
||||
functions.photos.UploadProfilePhoto(
|
||||
file=self.save_file(photo)
|
||||
file=await self.save_file(photo)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue