Fix sign up method not accepting integer codes

This commit is contained in:
Lonami Exo 2018-02-09 19:39:20 +01:00
parent 6261affaa1
commit 6240677831

View File

@ -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
))