mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
Fix two factor auth bug
This commit is contained in:
parent
3a63788b52
commit
5ece335301
|
@ -31,7 +31,7 @@ def main():
|
||||||
code_ok = client.sign_in(user_phone, code)
|
code_ok = client.sign_in(user_phone, code)
|
||||||
except SessionPasswordNeededError:
|
except SessionPasswordNeededError:
|
||||||
pw = getpass('Two step verification enabled. Please enter your password: ')
|
pw = getpass('Two step verification enabled. Please enter your password: ')
|
||||||
client.sign_in(password=pw)
|
code_ok = client.sign_in(password=pw)
|
||||||
print('INFO: Client initialized succesfully!')
|
print('INFO: Client initialized succesfully!')
|
||||||
|
|
||||||
client.add_update_handler(update_handler)
|
client.add_update_handler(update_handler)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user