mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 11:40:11 +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)
|
||||
except SessionPasswordNeededError:
|
||||
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!')
|
||||
|
||||
client.add_update_handler(update_handler)
|
||||
|
|
Loading…
Reference in New Issue
Block a user