diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 2ba2d2ce..a34f0967 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -161,7 +161,7 @@ class Client(Methods, BaseClient): force_sms: bool = False, first_name: str = None, last_name: str = None, - workers: int = 4, + workers: int = BaseClient.WORKERS, workdir: str = BaseClient.WORKDIR, config_file: str = BaseClient.CONFIG_FILE, plugins_dir: str = BaseClient.PLUGINS_DIR): diff --git a/pyrogram/client/ext/base_client.py b/pyrogram/client/ext/base_client.py index af7e91aa..5801b4e8 100644 --- a/pyrogram/client/ext/base_client.py +++ b/pyrogram/client/ext/base_client.py @@ -49,6 +49,7 @@ class BaseClient: UPDATES_WORKERS = 1 DOWNLOAD_WORKERS = 1 OFFLINE_SLEEP = 300 + WORKERS = 4 WORKDIR = "." CONFIG_FILE = "./config.ini" PLUGINS_DIR = "./plugins"