Spaces:
Runtime error
Runtime error
Create .env.example
Browse files- .env.example +55 -0
.env.example
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# filename: .env.example
|
| 2 |
+
|
| 3 |
+
# ----------------------------------------------------
|
| 4 |
+
# Telegram Credentials (Mandatory)
|
| 5 |
+
# ----------------------------------------------------
|
| 6 |
+
# Get these from my.telegram.org
|
| 7 |
+
API_ID="12345678"
|
| 8 |
+
API_HASH="your_api_hash"
|
| 9 |
+
|
| 10 |
+
# Get this from @BotFather on Telegram
|
| 11 |
+
BOT_TOKEN="1234567890:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"
|
| 12 |
+
|
| 13 |
+
# Your personal Telegram User ID. The bot will recognize you as the owner.
|
| 14 |
+
OWNER_ID="your_telegram_id"
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# ----------------------------------------------------
|
| 18 |
+
# Database Configuration (Mandatory)
|
| 19 |
+
# ----------------------------------------------------
|
| 20 |
+
# Add your MongoDB connection strings here, numbered sequentially.
|
| 21 |
+
# You can add more (MONGODB_URL_3, MONGODB_URL_4) in the future.
|
| 22 |
+
MONGODB_URL_1="mongodb+srv://user:password@cluster0.mongodb.net/?retryWrites=true&w=majority"
|
| 23 |
+
MONGODB_URL_2="mongodb+srv://user:password@cluster1.mongodb.net/?retryWrites=true&w=majority"
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# ----------------------------------------------------
|
| 27 |
+
# Bot Functionality (Mandatory)
|
| 28 |
+
# ----------------------------------------------------
|
| 29 |
+
# The URL of your Terabox worker API
|
| 30 |
+
TERABOX_WORKER_URL="https://your-worker-api.com/api"
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
# ----------------------------------------------------
|
| 34 |
+
# Bot Features (Optional, but recommended)
|
| 35 |
+
# ----------------------------------------------------
|
| 36 |
+
# The username of the channel users must join (without the '@'). Leave empty to disable.
|
| 37 |
+
FORCE_SUB_CHANNEL_USERNAME="YourChannelName"
|
| 38 |
+
|
| 39 |
+
# The ID of a private channel where all successful uploads will be sent as a backup.
|
| 40 |
+
# Must start with -100. Leave empty to disable.
|
| 41 |
+
BACKUP_CHANNEL_ID="-1001234567890"
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
# ----------------------------------------------------
|
| 45 |
+
# Performance & Limits
|
| 46 |
+
# ----------------------------------------------------
|
| 47 |
+
# Number of workers for each queue. For Hugging Face, keeping these at 1 is safest.
|
| 48 |
+
PREMIUM_WORKERS="1"
|
| 49 |
+
FREE_WORKERS="1"
|
| 50 |
+
|
| 51 |
+
# The maximum file size in MB that a free user can download for a NEW, uncached link.
|
| 52 |
+
FREE_USER_FILE_SIZE_LIMIT="50"
|
| 53 |
+
|
| 54 |
+
# Set to "1" to enable FFMPEG operations (remuxing/thumbnails), "0" to disable.
|
| 55 |
+
ENABLE_FFMPEG="1"
|