From d02a19c59cdb0b7bafdb0237c1f6031c7bc7dd51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D1=8F=D1=87=D0=B5=D1=81=D0=BB=D0=B0=D0=B2=20=D0=91?= =?UTF-8?q?=D0=B0=D0=B6=D0=B5=D0=BD=D0=BE=D0=B2?= Date: Sun, 16 Jun 2019 20:30:00 +0300 Subject: [PATCH] TelegramClientX temporarily deactivated --- download_service.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/download_service.py b/download_service.py index daa975a..b530ccd 100644 --- a/download_service.py +++ b/download_service.py @@ -12,8 +12,8 @@ from telethon.tl.types import DocumentAttributeFilename from telethon.tl.types import Document from telethon.utils import get_input_media from telethon.errors.rpc_error_list import LocationInvalidError -from telegram_client_x import TelegramClientX -# from telethon.telegram_client import TelegramClient +# from telegram_client_x import TelegramClientX +from telethon.telegram_client import TelegramClient from telethon.tl.types import Message from tg_access import * from io import BytesIO @@ -57,9 +57,11 @@ class Buffer: # {{{1 path_home = './' # os.path.abspath('.') path_local = './local' -client = TelegramClientX(entity, api_id, api_hash, update_workers=None, spawn_read_thread=True) -client.set_upload_threads_count(24)#24 -client.set_download_threads_count(8)#8 +# client = TelegramClientX(entity, api_id, api_hash, update_workers=None, spawn_read_thread=True) +client = TelegramClient(entity, api_id, api_hash, update_workers=None, spawn_read_thread=True) + +# client.set_upload_threads_count(24)#24 +# client.set_download_threads_count(8)#8 last_call_time_sent = time.time() last_call_time_receive = time.time() if not client.is_connected():