mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 02:43:45 +03:00
Add missing await in qr_login
This commit is contained in:
parent
898eb5b82f
commit
c16fb0dae6
|
@ -113,7 +113,7 @@ class QRLogin:
|
||||||
|
|
||||||
if isinstance(resp, types.auth.LoginTokenSuccess):
|
if isinstance(resp, types.auth.LoginTokenSuccess):
|
||||||
user = resp.authorization.user
|
user = resp.authorization.user
|
||||||
self._client._on_login(user)
|
await self._client._on_login(user)
|
||||||
return user
|
return user
|
||||||
|
|
||||||
raise TypeError('Login token response was unexpected: {}'.format(resp))
|
raise TypeError('Login token response was unexpected: {}'.format(resp))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user