Update get_me.py
This commit is contained in:
parent
ca29ea1db4
commit
804d00fa0f
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user