mirror of
https://github.com/anonymousx97/social-dl.git
synced 2025-02-20 11:13:19 +08:00
v2.1.1
Add: 30 sec sleep threshold and concurrent transmissions to 2. Fix: Typo fix in config.
This commit is contained in:
parent
b7287a6685
commit
2b41731e84
@ -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))
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user