mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 14:25:55 +00:00
Add missing awaits
This commit is contained in:
@@ -21,7 +21,7 @@ from ...ext import BaseClient
|
|||||||
|
|
||||||
|
|
||||||
class SetUserProfilePhoto(BaseClient):
|
class SetUserProfilePhoto(BaseClient):
|
||||||
def set_user_profile_photo(
|
async def set_user_profile_photo(
|
||||||
self,
|
self,
|
||||||
photo: str
|
photo: str
|
||||||
) -> bool:
|
) -> bool:
|
||||||
@@ -43,9 +43,9 @@ class SetUserProfilePhoto(BaseClient):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
return bool(
|
return bool(
|
||||||
self.send(
|
await self.send(
|
||||||
functions.photos.UploadProfilePhoto(
|
functions.photos.UploadProfilePhoto(
|
||||||
file=self.save_file(photo)
|
file=await self.save_file(photo)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user