mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Add note on 2FA for qr_login
This commit is contained in:
parent
c975b566a1
commit
346a3f0ef5
|
@ -586,6 +586,9 @@ class AuthMethods:
|
||||||
|
|
||||||
# Important! You need to wait for the login to complete!
|
# Important! You need to wait for the login to complete!
|
||||||
await qr_login.wait()
|
await qr_login.wait()
|
||||||
|
|
||||||
|
# If you have 2FA enabled, `wait` will raise `telethon.errors.SessionPasswordNeededError`.
|
||||||
|
# You should except that error and call `sign_in` with the password if this happens.
|
||||||
"""
|
"""
|
||||||
qr_login = custom.QRLogin(self, ignored_ids or [])
|
qr_login = custom.QRLogin(self, ignored_ids or [])
|
||||||
await qr_login.recreate()
|
await qr_login.recreate()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user