Update get_me.py

This commit is contained in:
Dan 2021-11-26 18:07:28 +01:00
parent ca29ea1db4
commit 804d00fa0f

View File

@ -34,11 +34,12 @@ class GetMe(Scaffold):
me = app.get_me()
print(me)
"""
return types.User._parse(
self,
(await self.send(
r = await self.send(
raw.functions.users.GetFullUser(
id=raw.types.InputUserSelf()
)
)).user
)
users = {u.id: u for u in r.users}
return types.User._parse(self, users[r.full_user.id])