From 5ece3353014ccc0e677f2ec116081990118d7167 Mon Sep 17 00:00:00 2001 From: Tanuj Date: Tue, 24 Oct 2017 20:26:54 +0100 Subject: [PATCH] Fix two factor auth bug --- telethon_examples/print_updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon_examples/print_updates.py b/telethon_examples/print_updates.py index e21fdfc0..e315ff98 100755 --- a/telethon_examples/print_updates.py +++ b/telethon_examples/print_updates.py @@ -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)