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