From f083b88f59880390a1f70ee141cc558b13138edd Mon Sep 17 00:00:00 2001 From: Goblenus Date: Sun, 11 Jun 2017 23:42:04 +0300 Subject: [PATCH] (Fix) Fix api_id type mismatch --- telethon/telegram_bare_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/telegram_bare_client.py b/telethon/telegram_bare_client.py index 4cd94c62..312e4835 100644 --- a/telethon/telegram_bare_client.py +++ b/telethon/telegram_bare_client.py @@ -57,7 +57,7 @@ class TelegramBareClient: can also be specified to be used on the connection. """ self.session = session - self.api_id = api_id + self.api_id = int(api_id) self.api_hash = api_hash self.proxy = proxy self._logger = logging.getLogger(__name__)