From dbd60765f695d6fa99d81d4a1e4712ba78895108 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 11 Sep 2018 19:39:46 +0200 Subject: [PATCH] Fix get_me not being properly awaited --- pyrogram/client/methods/users/get_me.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pyrogram/client/methods/users/get_me.py b/pyrogram/client/methods/users/get_me.py index f191e298..a8aac70f 100644 --- a/pyrogram/client/methods/users/get_me.py +++ b/pyrogram/client/methods/users/get_me.py @@ -30,10 +30,10 @@ class GetMe(BaseClient): Raises: :class:`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)