From f014c040a340b98f3e95f9d42ff328304662e342 Mon Sep 17 00:00:00 2001 From: Inokenty Date: Wed, 27 Jun 2018 20:23:46 +0500 Subject: [PATCH] Keyword arg instead positional for sign_in (#869) --- telethon/client/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/auth.py b/telethon/client/auth.py index 033132be..6f86a733 100644 --- a/telethon/client/auth.py +++ b/telethon/client/auth.py @@ -139,7 +139,7 @@ class AuthMethods(MessageParseMethods, UserMethods): code_callback(), first_name, last_name) else: # Raises SessionPasswordNeededError if 2FA enabled - me = await self.sign_in(phone, code_callback()) + me = await self.sign_in(phone, code=code_callback()) break except errors.SessionPasswordNeededError: two_step_detected = True