From 2af962230f3642f2821dba9a8b0b2805246d7ac9 Mon Sep 17 00:00:00 2001 From: "Dmitry D. Chernov" Date: Mon, 19 Jun 2017 07:20:36 +1000 Subject: [PATCH] Fix error 400:CONNECTION_APP_VERSION_EMPTY when using temporary sessions --- telethon/tl/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/session.py b/telethon/tl/session.py index da0453b9..dc1b13ed 100644 --- a/telethon/tl/session.py +++ b/telethon/tl/session.py @@ -110,7 +110,7 @@ class JsonSession: # For connection purposes self.device_model = platform.node() self.system_version = platform.system() - self.app_version = '0' + self.app_version = '1.0' # note: '0' will provoke error self.lang_code = 'en' elif isinstance(session_user_id, JsonSession):