Dim Bot is a high-performance Telegram Userbot designed to extract and download videos from various streaming services directly to your local server. It supports parallel processing, real-time progress tracking, and specialized extraction logic for difficult sites like Terabox.
- Multi-Source Extraction:
- Terabox: Advanced extraction using your own account's private file list (Recursive Search & PCS API) to bypass "verify_v2" captchas.
- YourUpload: Direct video extraction.
- Parallel Downloads: Handle multiple
/uploadrequests simultaneously without blocking. - Real-Time Progress: Telegram messages update live with download speed, ETA, and a visual progress bar.
- Smart File Management: Automatically renames files and saves them to a configured local directory.
-
Clone the repository
git clone https://github.com/yourusername/Dim.git cd Dim -
Install Dependencies
pip3 install -r requirements.txt
-
Configuration Create a
.envfile in the root directory:API_ID=your_telegram_api_id API_HASH=your_telegram_api_hash BOT_TOKEN=your_bot_token_from_botfather OWNER_ID=your_telegram_user_id TERABOX_ACCESS_TOKEN=your_premium_token
- API_ID/HASH: Get from my.telegram.org.
- BOT_TOKEN: Create a bot via @BotFather.
- OWNER_ID: Get your numerical ID from @userinfobot.
- TERABOX_ACCESS_TOKEN: Get from Terabox Developer Portal or extracted from network calls.
-
Run the Bot
python3 main.py
Send a command to your Userbot (saved messages or any chat):
/upload https://teraboxlink.com/s/1...
/upload https://www.yourupload.com/embed/...
The bot will:
- Reply "⏳ Processing..."
- Find the file (resolving short links if needed).
- Download it to
~/files/output/(configurable inconfig.py). - Update the message with progress.
- Notify you when finished.
For the Terabox extractor to work:
- The file MUST be in your Terabox account (saved/imported).
- The bot searches your account for the filename found in the share link.
- Ensure your
TERABOX_NDUScookie is fresh (refresh monthly).
MIT