From c16fb0dae6199f26d39a88b44f84ff74970eaa0e Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 16 May 2022 18:56:24 +0200 Subject: [PATCH] Add missing await in qr_login --- telethon/tl/custom/qrlogin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/custom/qrlogin.py b/telethon/tl/custom/qrlogin.py index 39585f2f..cd540274 100644 --- a/telethon/tl/custom/qrlogin.py +++ b/telethon/tl/custom/qrlogin.py @@ -113,7 +113,7 @@ class QRLogin: if isinstance(resp, types.auth.LoginTokenSuccess): user = resp.authorization.user - self._client._on_login(user) + await self._client._on_login(user) return user raise TypeError('Login token response was unexpected: {}'.format(resp))