Download TeraBox videos instantly through Telegram β fast, free, and feature-packed.
π€ Try Bot β’ π¬ Support Group β’ π’ Channel β’ β GitHub
You send a TeraBox link
β
Bot fetches file info (with fallback API)
β
Downloads + adds watermark
β
Uploads to Telegram (2GB fast upload)
β
Forwards to you instantly
That's it. No ads, no waiting, no nonsense.
- Send any TeraBox link β instant download
- 39+ supported domains (terabox.com, 1024terabox.com, dubox, mirrobox, etc.)
- 20+ video formats (mp4, mkv, webm, mov, avi, flv, wmv, etc.)
- Quality selector β
/dl 720p <link>or/dl 1080p <link> - Folder download β
/folder <link>(premium) - Batch multi-file download
- Fallback API β if primary fails, auto-tries secondary
- Time-based expiry (1d, 2d, 3d, 7d, 1w, 1m, unlimited)
- Gift card system with duration
- 1 GC per user per premium cycle
- Unlimited downloads, no size limit, multi-file
- Custom thumbnail for premium users
/mp3β Extract audio from any video/compressβ Compress video (low/mid quality)- Video watermark β
@TERA_NTM_BOTon every video - Video metadata β duration, resolution, thumbnail
- Modern button-based UI β no need to memorize commands
- 3 languages β English, Nepali, Hindi
- Download history β
/history - Auto-expired premium
- Instant cached forwarding
- Dynamic admin system β add/remove admins from bot
/ban/unbanβ ban users/broadcastβ send message to all users/announce 30 <msg>β scheduled broadcast/gen 7d 5β generate 5 gift cards for 7 days/gclistβ list all gift cards/statsβ bot statistics/usageβ disk, RAM, CPU usage/logsβ recent error logs/backupβ export Redis data
/panicβ emergency stop all services/resumeβ bring bot back online/maintenanceβ toggle maintenance mode- Anti-spam cooldown (configurable)
- Max files per request limit
- Audit log β tracks all admin actions
- Force channel/group join
| Feature | Free | Premium |
|---|---|---|
| Downloads | 10/hour | Unlimited |
| Files per link | 1 | All |
| File size limit | 500MB | Unlimited |
| Multi-file | β | β |
| Folder download | β | β |
| Custom thumbnail | β | β |
| Priority speed | β | β |
| Watermark | β | β |
| Command | Description |
|---|---|
/start |
Open main menu |
/help |
Show commands |
/info |
Your profile & plan |
/plan |
View plans |
/redeem <code> |
Redeem gift card |
/history |
Your download history |
/dl 720p <link> |
Download in quality |
/folder <link> |
Download folder (β) |
/mp3 |
Reply to video β audio |
/compress |
Reply to video β compress |
/setthumb |
Set thumbnail (β) |
/lang ne |
Set language |
| Command | Description |
|---|---|
/pre <id> <dur> |
Promote to premium |
/de <id> |
Demote from premium |
/premium_users |
List premium users |
/gen <dur> [n] |
Generate gift cards |
/gclist |
List all gift cards |
/ban <id> |
Ban user |
/unban <id> |
Unban user |
/broadcast <msg> |
Broadcast to all |
/announce <min> <msg> |
Scheduled broadcast |
/stats |
Bot statistics |
/usage |
Resource usage |
/logs |
Error logs |
| Command | Description |
|---|---|
/panic |
π¨ Emergency stop |
/resume |
Bring bot online |
/maintenance |
Toggle maintenance |
/addadmin <id> |
Add admin |
/removeadmin <id> |
Remove admin |
/adminlist |
List all admins |
/auditlog |
View admin action log |
/backup |
Export Redis data |
/update |
Pull & restart |
/maxfiles <n> |
Set file limit |
/setcooldown <s> |
Set cooldown |
/setstorage <id> |
Update storage chat |
/allowredeem <id> |
Reset GC redemption |
# Install dependencies
sudo apt update && sudo apt install python3 python3-pip python3-venv redis-server git ffmpeg -y
# Clone
git clone https://github.com/abdul97233/TeraBox-Downloader-Bot.git
cd TeraBox-Downloader-Bot
# Virtual environment
python3 -m venv venv
source venv/bin/activate
# Install packages
pip install -r requirements.txt
pip install opencv-python-headless
# Configure
cp config.example.py config.py
nano config.py # Add your credentials
# Run
python main.pynohup python main.py > bot.log 2>&1 &
disowngit pull origin main
pkill -f "python main.py"
nohup python main.py > bot.log 2>&1 &
disownCreate config.py:
# Telegram
API_ID = 123456
API_HASH = "your_api_hash"
BOT_TOKEN = "your_bot_token"
# Redis
HOST = "localhost"
PORT = 6379
PASSWORD = ""
# Bot
PRIVATE_CHAT_ID = -1001234567890
DOWNLOAD_DIR = "downloads"
# Admin
OWNER_ID = 123456789
ADMINS = [123456789]
# Force Join
FORCE_CHANNELS = ["@your_channel"]
FORCE_GROUPS = ["@your_group"]
# TeraBox API
TERABOX_API_BASE = "https://saiyanteraboxapi.saiyanprojects.com/"
TERABOX_API_TOKEN = "your_token"
TERABOX_API_TEMPLATE = f"{TERABOX_API_BASE}?authkey={TERABOX_API_TOKEN}&url={{url}}"
# Fallback API
TERABOX_FALLBACK_API_BASE = "https://saiyanteraboxapi2.saiyanprojects.com/"
TERABOX_FALLBACK_API_TEMPLATE = f"{TERABOX_FALLBACK_API_BASE}?authkey={TERABOX_API_TOKEN}&url={{url}}"
# Self-hosted Bot API (2GB uploads)
TG_API_BASE = "https://your-bot-api-server.com"
# GitHub (for /update)
GITHUB_REPO = "https://github.com/abdul97233/TeraBox-Downloader-Bot"TeraBox-Downloader-Bot/
βββ main.py # Bot entry point, handlers, UI
βββ terabox.py # TeraBox API integration (async)
βββ tools.py # Download, upload, watermark, utils
βββ config.py # Your credentials (not pushed)
βββ cansend.py # Rate limiter for progress bars
βββ requirements.txt # Python dependencies
βββ README.md # This file
| Component | Technology |
|---|---|
| Language | Python 3.9+ |
| Bot Framework | Telethon (MTProto) |
| Bot API Upload | aiohttp + self-hosted Bot API |
| Download | aiohttp (async, 2MB chunks) |
| Database | Redis |
| Video Processing | ffmpeg + OpenCV |
| Watermark | ffmpeg drawtext |
| Parallel | asyncio (non-blocking) |
| Problem | Solution |
|---|---|
| Bot not starting | Check python --version, reinstall deps |
| Redis error | sudo systemctl restart redis |
| Slow download | VPS location matters β use nearby server |
| ffmpeg not found | sudo apt install ffmpeg |
| Upload fails | Check TG_API_BASE server status |
| Memory full | Run /cleandownloads or /usage |
- Never commit
config.pyto GitHub - Use
.gitignore:config.py *.session *.session-journal __pycache__/ venv/ bot.log downloads/ - If credentials leak: rotate immediately
- Fork the repo
- Create branch:
git checkout -b feature/my-feature - Commit:
git commit -m "Add: my feature" - Push:
git push origin feature/my-feature - Open a Pull Request
GPL-3.0 β Free to use, modify, and distribute.
Made with β€οΈ by Abdul
β Star this repo if you found it useful!