mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Add missing async/await
This commit is contained in:
parent
c5af9cbc42
commit
f4d075597f
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ from ...ext import BaseClient
|
||||||
|
|
||||||
|
|
||||||
class UpdateProfile(BaseClient):
|
class UpdateProfile(BaseClient):
|
||||||
def update_profile(
|
async def update_profile(
|
||||||
self,
|
self,
|
||||||
first_name: str = None,
|
first_name: str = None,
|
||||||
last_name: str = None,
|
last_name: str = None,
|
||||||
|
|
@ -60,7 +60,7 @@ class UpdateProfile(BaseClient):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return bool(
|
return bool(
|
||||||
self.send(
|
await self.send(
|
||||||
functions.account.UpdateProfile(
|
functions.account.UpdateProfile(
|
||||||
first_name=first_name,
|
first_name=first_name,
|
||||||
last_name=last_name,
|
last_name=last_name,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue