Add: 30 sec sleep threshold and concurrent transmissions to 2.
Fix: Typo fix in config.
This commit is contained in:
anonymousx97 2023-07-28 15:29:13 +05:30
parent b7287a6685
commit 2b41731e84
2 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import os
import json
class Config:
API_KEYS = json.loads(os.envion.get("API_KEYS", "[]"))
API_KEYS = json.loads(os.environ.get("API_KEYS", "[]"))
BLOCKED_USERS = []
BLOCKED_USERS_MESSAGE_ID = int(os.environ.get("BLOCKED_USERS_MESSAGE_ID",0))

View File

@ -29,6 +29,8 @@ class BOT(Client):
api_hash=os.environ.get("API_HASH"),
in_memory=True,
parse_mode=ParseMode.DEFAULT,
sleep_threshold=30,
max_concurrent_transmissions=2,
)
def add_cmd(self, cmd, trigger=Config.TRIGGER): # Custom triggers To do