diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index a5664107..ba5f77f6 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -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,