Fix SignUpRequest using an incorrectly named parameter

This commit is contained in:
Lonami Exo 2017-09-02 16:52:56 +02:00
parent bea1b7f526
commit 0197271f74

View File

@ -306,7 +306,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,