Keyword arg instead positional for sign_in

This commit is contained in:
Inokenty 2018-06-27 18:45:47 +05:00
parent a46a45d060
commit 649858c202

View File

@ -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