A cleaner and improved version of the Save Restricted Content Bot with a better structure, smoother workflow, and practical features for real usage.
π¦ Core Features
- Save Restricted Content β Download text, media, and files from restricted channels.
- Batch Mode β Bulk download messages from public or private channels with auto-detection.
- User Login β Login using
/loginto enable downloading capabilities.
- Set custom captions (
/set_caption) - Set custom thumbnails (
/set_thumb) - Auto-delete or replace specific words
- Built-in system for free and premium users
- Admin-controlled premium access
- Broadcast messages
- Ban / Unban users
- Manage premium status
- MongoDB-based user data and settings
- Supports uptime services for Render / Heroku deployments
- Python 3.10+
- MongoDB Database
- Telegram API ID & Hash
- Bot Token
Click to Expand
| Variable | Description |
|---|---|
BOT_TOKEN |
Telegram Bot Token from BotFather |
API_ID |
Telegram API ID |
API_HASH |
Telegram API Hash |
ADMINS |
Comma-separated Admin User IDs |
DB_URI |
MongoDB Connection String |
DB_NAME |
Database Name (default: SaveRestricted2) |
LOG_CHANNEL |
Channel ID for logging users and errors |
ERROR_MESSAGE |
Send error messages to users |
KEEP_ALIVE |
Use an uptime service like UptimeRobot |
Installation Steps
git clone https://github.com/iEscly/save-restrict-bot
cd SAVE-RESTRICT-BOT-V2pip install -r requirements.txtpython bot.pydocker build -t save-restricted-bot .
docker run -d --env-file .env save-restricted-botClick to Expand
| Command | Action |
|---|---|
/start |
Start the bot |
/help |
Get help information |
/login |
Login to your account |
/logout |
Logout from your account |
/cancel |
Cancel batch process |
/settings |
Open settings menu |
/myplan |
Check your current plan |
/premium |
View premium details |
/set_caption/see_caption/del_caption/set_thumb/view_thumb/del_thumb/thumb_mode/set_del_word/rem_del_word/set_repl_word/rem_repl_word/setchat
Click to Expand
/broadcast/ban//unban/add_premium//remove_premium/users/premium_users/set_dump/dblink
β If this project helped you, consider starring the repository!