mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Fix login failure due to wrong argument name (#1109)
This commit is contained in:

committed by
Dmitry D. Chernov

parent
5bb2d9adf3
commit
2e544270cd
@@ -231,9 +231,9 @@ class AuthMethods(MessageParseMethods, UserMethods):
|
|||||||
'Please make sure to call send_code_request first.'
|
'Please make sure to call send_code_request first.'
|
||||||
)
|
)
|
||||||
|
|
||||||
phone_code_hash = phone_hash or self._phone_code_hash.get(phone, None)
|
phone_hash = phone_hash or self._phone_code_hash.get(phone, None)
|
||||||
if not phone_code_hash:
|
if not phone_hash:
|
||||||
raise ValueError('You also need to provide a phone_code_hash.')
|
raise ValueError('You also need to provide a phone_hash.')
|
||||||
|
|
||||||
return phone, phone_hash
|
return phone, phone_hash
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user