mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-02 13:34:51 +00:00
Fix get_me not being properly awaited
This commit is contained in:
parent
8ff413c7e7
commit
dbd60765f6
1 changed files with 6 additions and 6 deletions
|
|
@ -30,10 +30,10 @@ class GetMe(BaseClient):
|
|||
Raises:
|
||||
:class:`Error <pyrogram.Error>`
|
||||
"""
|
||||
return utils.parse_user(
|
||||
await self.send(
|
||||
functions.users.GetFullUser(
|
||||
types.InputPeerSelf()
|
||||
)
|
||||
).user
|
||||
r = await self.send(
|
||||
functions.users.GetFullUser(
|
||||
types.InputPeerSelf()
|
||||
)
|
||||
)
|
||||
|
||||
return utils.parse_user(r.user)
|
||||
|
|
|
|||
Loading…
Reference in a new issue