Skip to content

anujeditinganuj-dotcom/Src

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

42 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Save Restricted Content Bot (Advanced)

A cleaner and improved version of the Save Restricted Content Bot with a better structure, smoother workflow, and practical features for real usage.


πŸ”— Quick Links


πŸš€ Features

πŸ“¦ 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 /login to enable downloading capabilities.

βš™οΈ Customization

  • Set custom captions (/set_caption)
  • Set custom thumbnails (/set_thumb)
  • Auto-delete or replace specific words

πŸ’Ž Premium System

  • Built-in system for free and premium users
  • Admin-controlled premium access

πŸ‘‘ Admin Tools

  • Broadcast messages
  • Ban / Unban users
  • Manage premium status

🧠 Persistent Storage

  • MongoDB-based user data and settings

☁️ Keep Alive

  • Supports uptime services for Render / Heroku deployments

πŸ›  Deployment

βœ… Prerequisites

  • Python 3.10+
  • MongoDB Database
  • Telegram API ID & Hash
  • Bot Token

βš™οΈ Environment Variables

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

πŸ’» Local Setup

Installation Steps

Clone the repository

git clone https://github.com/LastPerson07/SAVE-RESTRICT-BOT-V2
cd SAVE-RESTRICT-BOT-V2

Install dependencies

pip install -r requirements.txt

Run the bot

python bot.py

🐳 Docker

docker build -t save-restricted-bot .
docker run -d --env-file .env save-restricted-bot

πŸ“ Commands

πŸ‘€ User Commands

Click 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

βš™οΈ Customization

  • /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

πŸ‘‘ Admin Commands

Click to Expand
  • /broadcast
  • /ban / /unban
  • /add_premium / /remove_premium
  • /users
  • /premium_users
  • /set_dump
  • /dblink

🀝 Contributors

Β 


πŸ“ž Support




⭐ If this project helped you, consider starring the repository!

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages