mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Turn hardcoded plugins dir into a constant
This commit is contained in:
parent
dfb841baa9
commit
0b79f96b4f
@ -164,7 +164,7 @@ class Client(Methods, BaseClient):
|
|||||||
workers: int = 4,
|
workers: int = 4,
|
||||||
workdir: str = ".",
|
workdir: str = ".",
|
||||||
config_file: str = "./config.ini",
|
config_file: str = "./config.ini",
|
||||||
plugins_dir: str = "./plugins"):
|
plugins_dir: str = BaseClient.PLUGINS_DIR):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self.session_name = session_name
|
self.session_name = session_name
|
||||||
|
@ -49,6 +49,7 @@ class BaseClient:
|
|||||||
UPDATES_WORKERS = 1
|
UPDATES_WORKERS = 1
|
||||||
DOWNLOAD_WORKERS = 1
|
DOWNLOAD_WORKERS = 1
|
||||||
OFFLINE_SLEEP = 300
|
OFFLINE_SLEEP = 300
|
||||||
|
PLUGINS_DIR = "./plugins"
|
||||||
|
|
||||||
MEDIA_TYPE_ID = {
|
MEDIA_TYPE_ID = {
|
||||||
0: "thumbnail",
|
0: "thumbnail",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user