From 18e485ded2cae368ed86bb173df5c9c2a04abada Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 30 Sep 2017 15:53:47 +0200 Subject: [PATCH] Set default TelegramBareClient behaviour to not spawn ReadThread --- 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 04398826..4355be3c 100644 --- a/telethon/telegram_bare_client.py +++ b/telethon/telegram_bare_client.py @@ -68,7 +68,7 @@ class TelegramBareClient: connection_mode=ConnectionMode.TCP_FULL, proxy=None, update_workers=None, - spawn_read_thread=True, + spawn_read_thread=False, timeout=timedelta(seconds=5), **kwargs): """Refer to TelegramClient.__init__ for docs on this method"""