mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 13:34:54 +00:00
Fix get_me not being properly awaited
This commit is contained in:
parent
8ff413c7e7
commit
dbd60765f6
@ -30,10 +30,10 @@ class GetMe(BaseClient):
|
|||||||
Raises:
|
Raises:
|
||||||
:class:`Error <pyrogram.Error>`
|
:class:`Error <pyrogram.Error>`
|
||||||
"""
|
"""
|
||||||
return utils.parse_user(
|
r = await self.send(
|
||||||
await self.send(
|
functions.users.GetFullUser(
|
||||||
functions.users.GetFullUser(
|
types.InputPeerSelf()
|
||||||
types.InputPeerSelf()
|
)
|
||||||
)
|
|
||||||
).user
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
return utils.parse_user(r.user)
|
||||||
|
Loading…
Reference in New Issue
Block a user