| 3 | id_pattern = re.compile(r'^.\d+$') |
| 4 | |
| 5 | class Config(object): |
| 6 | |
| 7 | API_ID = os.environ.get("API_ID", "") |
| 8 | API_HASH = os.environ.get("API_HASH", "") |
| 9 | BOT_TOKEN = os.environ.get("BOT_TOKEN", "") |
| 10 | BOT = None |
| 11 | |
| 12 | # premium account string session required 😢 |
| 13 | STRING_SESSION = os.environ.get("STRING_SESSION", "") |
| 14 | |
| 15 | # database config |
| 16 | DB_NAME = os.environ.get("DB_NAME", "Rename_Bot") |
| 17 | DB_URL = os.environ.get("DB_URL", "") |
| 18 | |
| 19 | # other configs |
| 20 | PIC = os.environ.get("PIC", "https://i.ibb.co/YTk9gzhY/IMG-20250906-144306-804.jpg") |
| 21 | ADMIN = int(os.environ.get("ADMIN", "1255023013")) |
| 22 | LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL", "")) |
| 23 | BIN_CHANNEL = int(os.environ.get("BIN_CHANNEL", "")) |
| 24 | |
| 25 | # free upload limit |
| 26 | FREE_UPLOAD_LIMIT = 6442450944 # calculation 6*1024*1024*1024=results |
| 27 | |
| 28 | # premium mode feature ✅ |
| 29 | UPLOAD_LIMIT_MODE = True |
| 30 | PREMIUM_MODE = True |
| 31 | |
| 32 | #force subs |
| 33 | IS_FSUB = os.environ.get("IS_FSUB", "False").lower() == "true" # Set "True" For Enable Force Subscribe |
| 34 | AUTH_CHANNELS = list(map(int, os.environ.get("AUTH_CHANNELS", "").split())) # Add Multiple channel ids |
| 35 | AUTH_REQ_CHANNELS = list(map(int, os.environ.get("AUTH_REQ_CHANNELS", "").split())) # Add Multiple channel ids |
| 36 | FSUB_EXPIRE = int(os.environ.get("FSUB_EXPIRE", 2)) # minutes, 0 = no expiry |
| 37 | |
| 38 | # wes response configuration |
| 39 | PORT = int(os.environ.get("PORT", "8080")) |
| 40 | BOT_UPTIME = time.time() |
| 41 | |
| 42 | class rkn(object): |
nothing calls this directly
no outgoing calls
no test coverage detected