max_concurrent_transmissions built-in
This commit is contained in:
parent
524a3c2a29
commit
a5a9a97dbc
@ -45,6 +45,9 @@ class PyroClient(Client):
|
|||||||
workers=self.config["bot"]["workers"],
|
workers=self.config["bot"]["workers"],
|
||||||
plugins=dict(root="plugins", exclude=self.config["disabled_plugins"]),
|
plugins=dict(root="plugins", exclude=self.config["disabled_plugins"]),
|
||||||
sleep_threshold=120,
|
sleep_threshold=120,
|
||||||
|
max_concurrent_transmissions=self.config["bot"][
|
||||||
|
"max_concurrent_transmissions"
|
||||||
|
],
|
||||||
)
|
)
|
||||||
self.owner: int = self.config["bot"]["owner"]
|
self.owner: int = self.config["bot"]["owner"]
|
||||||
self.commands: List[PyroCommand] = []
|
self.commands: List[PyroCommand] = []
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
"api_hash": "",
|
"api_hash": "",
|
||||||
"bot_token": "",
|
"bot_token": "",
|
||||||
"workers": 1,
|
"workers": 1,
|
||||||
|
"max_concurrent_transmissions": 1,
|
||||||
"scoped_commands": true
|
"scoped_commands": true
|
||||||
},
|
},
|
||||||
"reports": {
|
"reports": {
|
||||||
|
Reference in New Issue
Block a user