max_concurrent_transmissions built-in

This commit is contained in:
Profitroll 2023-06-21 13:50:38 +02:00
parent 524a3c2a29
commit a5a9a97dbc
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,9 @@ class PyroClient(Client):
workers=self.config["bot"]["workers"],
plugins=dict(root="plugins", exclude=self.config["disabled_plugins"]),
sleep_threshold=120,
max_concurrent_transmissions=self.config["bot"][
"max_concurrent_transmissions"
],
)
self.owner: int = self.config["bot"]["owner"]
self.commands: List[PyroCommand] = []

View File

@ -6,6 +6,7 @@
"api_hash": "",
"bot_token": "",
"workers": 1,
"max_concurrent_transmissions": 1,
"scoped_commands": true
},
"reports": {