From 2b41731e849c6eb42a2a375f25361b5845b777bb Mon Sep 17 00:00:00 2001 From: anonymousx97 <88324835+anonymousx97@users.noreply.github> Date: Fri, 28 Jul 2023 15:29:13 +0530 Subject: [PATCH] v2.1.1 Add: 30 sec sleep threshold and concurrent transmissions to 2. Fix: Typo fix in config. --- app/config.py | 2 +- app/core/client.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 4914082..e58c1e2 100644 --- a/app/config.py +++ b/app/config.py @@ -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)) diff --git a/app/core/client.py b/app/core/client.py index bb73d5a..ae5a06a 100644 --- a/app/core/client.py +++ b/app/core/client.py @@ -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