diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index fef929fc..2ba2d2ce 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -162,8 +162,8 @@ class Client(Methods, BaseClient): first_name: str = None, last_name: str = None, workers: int = 4, - workdir: str = ".", - config_file: str = "./config.ini", + workdir: str = BaseClient.WORKDIR, + config_file: str = BaseClient.CONFIG_FILE, plugins_dir: str = BaseClient.PLUGINS_DIR): super().__init__() diff --git a/pyrogram/client/ext/base_client.py b/pyrogram/client/ext/base_client.py index 562da2b2..af7e91aa 100644 --- a/pyrogram/client/ext/base_client.py +++ b/pyrogram/client/ext/base_client.py @@ -49,6 +49,8 @@ class BaseClient: UPDATES_WORKERS = 1 DOWNLOAD_WORKERS = 1 OFFLINE_SLEEP = 300 + WORKDIR = "." + CONFIG_FILE = "./config.ini" PLUGINS_DIR = "./plugins" MEDIA_TYPE_ID = {