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)