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