mirror of
https://github.com/anonymousx97/social-dl.git
synced 2025-02-20 11:13:19 +08:00
Fixes: • Sender Now shows Correct name while downloading replied media. • Clean up code for YoutubeDL. • Format code according to PEP. Added: • .cancel to cancel a command/media download execution. • switch to @cached_property decorator and clean up message.py • Parse replied message using custom message class. • Rename tools to dev_tools and move loader to it. • self-destructing responses.
22 lines
534 B
Python
22 lines
534 B
Python
import json
|
|
import os
|
|
|
|
|
|
class Config:
|
|
API_KEYS = json.loads(os.environ.get("API_KEYS", "[]"))
|
|
|
|
BLOCKED_USERS = []
|
|
BLOCKED_USERS_MESSAGE_ID = int(os.environ.get("BLOCKED_USERS_MESSAGE_ID", 0))
|
|
|
|
CHATS = []
|
|
AUTO_DL_MESSAGE_ID = int(os.environ.get("AUTO_DL_MESSAGE_ID", 0))
|
|
|
|
CMD_DICT = {}
|
|
|
|
DEV_MODE = int(os.environ.get("DEV_MODE", 0))
|
|
LOG_CHAT = int(os.environ.get("LOG_CHAT"))
|
|
TRIGGER = os.environ.get("TRIGGER", ".")
|
|
|
|
USERS = []
|
|
USERS_MESSAGE_ID = int(os.environ.get("USERS_MESSAGE_ID", 0))
|