From 624067783182522051ebc354488bf9aa0b94cf6b Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Fri, 9 Feb 2018 19:39:20 +0100 Subject: [PATCH] Fix sign up method not accepting integer codes --- 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 c4f5d722..1e90824f 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -416,7 +416,7 @@ class TelegramClient(TelegramBareClient): result = self(SignUpRequest( phone_number=self._phone, phone_code_hash=self._phone_code_hash.get(self._phone, ''), - phone_code=code, + phone_code=str(code), first_name=first_name, last_name=last_name ))