mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Don't make use of hardcoded default string values
This commit is contained in:
parent
c2da2a61ec
commit
a32009a79d
@ -160,8 +160,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):
|
||||
super().__init__()
|
||||
|
||||
self.session_name = session_name
|
||||
|
@ -49,6 +49,8 @@ class BaseClient:
|
||||
UPDATES_WORKERS = 1
|
||||
DOWNLOAD_WORKERS = 1
|
||||
OFFLINE_SLEEP = 300
|
||||
WORKDIR = "."
|
||||
CONFIG_FILE = "./config.ini"
|
||||
|
||||
MEDIA_TYPE_ID = {
|
||||
0: "thumbnail",
|
||||
|
Loading…
Reference in New Issue
Block a user