Fix login failure due to wrong argument name

This commit is contained in:
nosanity 2019-02-14 02:27:23 +03:00 committed by GitHub
parent 5bb2d9adf3
commit 4a233c4caf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,9 +231,9 @@ class AuthMethods(MessageParseMethods, UserMethods):
'Please make sure to call send_code_request first.'
)
phone_code_hash = phone_hash or self._phone_code_hash.get(phone, None)
if not phone_code_hash:
raise ValueError('You also need to provide a phone_code_hash.')
phone_hash = phone_hash or self._phone_code_hash.get(phone, None)
if not phone_hash:
raise ValueError('You also need to provide a phone_hash.')
return phone, phone_hash