mirror of
https://github.com/devgaganin/Save-Restricted-Content-Bot-v3.git
synced 2026-07-09 16:08:39 +00:00
78 lines
4.8 KiB
Python
78 lines
4.8 KiB
Python
# Copyright (c) 2025 devgagan : https://github.com/devgaganin.
|
|
# Licensed under the GNU General Public License v3.0.
|
|
# See LICENSE file in the repository root for full license text.
|
|
|
|
import os
|
|
from dotenv import load_dotenv
|
|
load_dotenv()
|
|
|
|
# ════════════════════════════════════════════════════════════════════════════════
|
|
# ░ CONFIGURATION SETTINGS
|
|
# ════════════════════════════════════════════════════════════════════════════════
|
|
|
|
# VPS --- FILL COOKIES 🍪 in """ ... """
|
|
INST_COOKIES = """
|
|
# write up here insta cookies
|
|
"""
|
|
|
|
YTUB_COOKIES = """
|
|
# write here yt cookies
|
|
"""
|
|
|
|
# ─── BOT / DATABASE CONFIG ──────────────────────────────────────────────────────
|
|
API_ID = os.getenv("API_ID", "")
|
|
API_HASH = os.getenv("API_HASH", "")
|
|
BOT_TOKEN = os.getenv("BOT_TOKEN", "")
|
|
MONGO_DB = os.getenv("MONGO_DB", "")
|
|
DB_NAME = os.getenv("DB_NAME", "telegram_downloader")
|
|
|
|
# ─── OWNER / CONTROL SETTINGS ───────────────────────────────────────────────────
|
|
OWNER_ID = list(map(int, os.getenv("OWNER_ID", "").split())) # space-separated list
|
|
STRING = os.getenv("STRING", None) # optional session string
|
|
LOG_GROUP = int(os.getenv("LOG_GROUP", "-1001234456"))
|
|
FORCE_SUB = int(os.getenv("FORCE_SUB", "-10012345567"))
|
|
|
|
# ─── SECURITY KEYS ──────────────────────────────────────────────────────────────
|
|
MASTER_KEY = os.getenv("MASTER_KEY", "gK8HzLfT9QpViJcYeB5wRa3DmN7P2xUq") # session encryption
|
|
IV_KEY = os.getenv("IV_KEY", "s7Yx5CpVmE3F") # decryption key
|
|
|
|
# ─── COOKIES HANDLING ───────────────────────────────────────────────────────────
|
|
YT_COOKIES = os.getenv("YT_COOKIES", YTUB_COOKIES)
|
|
INSTA_COOKIES = os.getenv("INSTA_COOKIES", INST_COOKIES)
|
|
|
|
# ─── USAGE LIMITS ───────────────────────────────────────────────────────────────
|
|
FREEMIUM_LIMIT = int(os.getenv("FREEMIUM_LIMIT", "0"))
|
|
PREMIUM_LIMIT = int(os.getenv("PREMIUM_LIMIT", "500"))
|
|
|
|
# ─── UI / LINKS ─────────────────────────────────────────────────────────────────
|
|
JOIN_LINK = os.getenv("JOIN_LINK", "https://t.me/team_spy_pro")
|
|
ADMIN_CONTACT = os.getenv("ADMIN_CONTACT", "https://t.me/username_of_admin")
|
|
|
|
# ════════════════════════════════════════════════════════════════════════════════
|
|
# ░ PREMIUM PLANS CONFIGURATION
|
|
# ════════════════════════════════════════════════════════════════════════════════
|
|
|
|
P0 = {
|
|
"d": {
|
|
"s": int(os.getenv("PLAN_D_S", 1)),
|
|
"du": int(os.getenv("PLAN_D_DU", 1)),
|
|
"u": os.getenv("PLAN_D_U", "days"),
|
|
"l": os.getenv("PLAN_D_L", "Daily"),
|
|
},
|
|
"w": {
|
|
"s": int(os.getenv("PLAN_W_S", 3)),
|
|
"du": int(os.getenv("PLAN_W_DU", 1)),
|
|
"u": os.getenv("PLAN_W_U", "weeks"),
|
|
"l": os.getenv("PLAN_W_L", "Weekly"),
|
|
},
|
|
"m": {
|
|
"s": int(os.getenv("PLAN_M_S", 5)),
|
|
"du": int(os.getenv("PLAN_M_DU", 1)),
|
|
"u": os.getenv("PLAN_M_U", "month"),
|
|
"l": os.getenv("PLAN_M_L", "Monthly"),
|
|
},
|
|
}
|
|
|
|
# ════════════════════════════════════════════════════════════════════════════════
|
|
# ░ DEVGAGAN
|
|
# ════════════════════════════════════════════════════════════════════════════════
|