Fix SignUpRequest using an incorrectly named parameter

This commit is contained in:
Lonami Exo 2017-09-02 16:53:29 +02:00
parent 5f4e79542f
commit 49c5cf745f

View File

@ -314,7 +314,7 @@ class TelegramClient(TelegramBareClient):
"""Signs up to Telegram. Make sure you sent a code request first!"""
result = self(
SignUpRequest(
phone=self._phone,
phone_number=self._phone,
phone_code_hash=self._phone_code_hash,
phone_code=code,
first_name=first_name,