The most powerful Telegram Uploader / Downloader bot.
Smooth like butter Β· Futuristic Β· Professional Β· DRM & Non-DRM β A to Z.
| Category | What it does |
|---|---|
| π TXT Leech | Extract & upload every video / pdf link from a .txt file |
| π DRM Decrypt | Widevine / ClearKey DRM streams via mp4decrypt (Bento4) |
| ποΈ Non-DRM | HLS (m3u8), MPD, direct MP4, YouTube, and more |
| π¬ YouTube | /y2t (YT β txt), /ytm (YT β mp3), cookies support |
| π Converters | /t2t (text β txt), /t2h (txt β html) |
| π§ Watermark | Custom video watermark text overlay |
| ποΈ Quality | 144p β 1080p selectable per session |
| π₯ Premium System | /add, /remove, /users, /plan with expiry tracking |
| π’ Broadcast | /broadcast text/photo/video/doc to all users |
| π Live Health | Futuristic auto-refreshing status dashboard |
Users
/start Bot status check & welcome
/y2t YouTube β .txt converter
/ytm YouTube β .mp3 downloader
/t2t Text β .txt generator
/t2h .txt β .html converter
/stop Cancel running task
/cookies Update YT cookies
/id Get chat / user ID
/info User details
/logs View bot activity
Owner / Admin
/add <id> <days> Grant premium access
/remove <id> Revoke access
/users List all premium users
/broadcast Reply to a msg to broadcast it
/broadusers List all broadcasting users
/reset Reset & re-register commands
Copy .env.example β .env and fill in:
| Variable | Required | Description |
|---|---|---|
API_ID |
β | From https://my.telegram.org |
API_HASH |
β | From https://my.telegram.org |
BOT_TOKEN |
β | From @BotFather |
OWNER / OWNER_ID |
β | Your numeric Telegram ID |
OWNER_ID2 |
β¬ | Second admin ID |
MONGO_URL |
β | MongoDB Atlas connection string |
DATABASE_NAME |
β¬ | Default: eagle |
CREDIT / CREDIT_LINK |
β¬ | Branding |
- Create app β set stack to
container - Add all env vars above
- Deploy this repo, then scale the worker dyno:
heroku stack:set container -a your-app git push heroku main heroku ps:scale worker=1 -a your-app
- Use the included
render.yaml(Docker-based web service).
pip install -r sainibots.txt
cp .env.example .env # fill in values
python3 modules/main.pyOnce deployed, open your app URL to see a live, glassmorphic status page:
- β green = bot connected (shows username, ID, uptime)
- β³ amber = still starting
- β red = connection error (with reason)
GET /health returns JSON for uptime monitors.
modules/
βββ main.py β entry point, all command/callback handlers
βββ auth.py β premium user management
βββ broadcast.py β broadcast engine
βββ db.py (root) β MongoDB layer
βββ drm_handler.py β DRM decrypt engine (Widevine/ClearKey)
βββ saini.py β core download/upload helper
βββ html_handler.py β .txt β .html
βββ youtube_handler.py β YouTube/cookies
βββ text_handler.py β text β .txt
βββ topic_handler.py β topic-in-caption logic
βββ utils.py β progress bar & helpers
βββ vars.py β config & message templates
π¦ Built for speed. Tuned for power. Smooth like butter.