A high-speed, multi-threaded Telegram bot built with Python, yt-dlp, and aria2c to download videos from 1000+ sites (YouTube, TikTok, Instagram, Twitter, etc.) at maximum speed.
- Ultra-Fast Downloads: Uses
aria2cwith 32 connections for IDM-like speeds (10MiB/s+). - Multi-URL Support: Paste up to 25 links in a single message to download them all simultaneously.
- Automatic Detection: Just send a link, and the bot handles the rest.
- MP4 Optimization: Automatically converts/downloads the best MP4 format for Telegram compatibility.
- Secure: Only authorized users (defined in
.env) can use the bot.
- Python 3.8+
- aria2c installed and added to your system PATH.
-
Clone the repository:
git clone https://github.com/SURJO99exe/tg-video-downloader.git cd tg-video-downloader -
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Configure Environment Variables: Copy
.env.exampleto.envand fill in your details:TELEGRAM_BOT_TOKEN: Get this from @BotFather.ALLOWED_USER_ID: Get your ID from @userinfobot.
-
Run the Bot:
python bot.py
Send one or multiple video links to the bot. It will automatically detect them, start the high-speed download, and send the video files back to you.
MIT