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() me = app.get_me()
print(me) print(me)
""" """
return types.User._parse( r = await self.send(
self,
(await self.send(
raw.functions.users.GetFullUser( raw.functions.users.GetFullUser(
id=raw.types.InputUserSelf() id=raw.types.InputUserSelf()
) )
)).user
) )
users = {u.id: u for u in r.users}
return types.User._parse(self, users[r.full_user.id])