From 0197271f74ff56e483c23c1557090f40605ceeb3 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 2 Sep 2017 16:52:56 +0200 Subject: [PATCH] Fix SignUpRequest using an incorrectly named parameter --- telethon/telegram_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,