Fix get_me not being properly awaited

This commit is contained in:
Dan 2018-09-11 19:39:46 +02:00
parent 8ff413c7e7
commit dbd60765f6

View File

@ -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)