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))