mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Keyword arg instead positional for sign_in (#869)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user