{"id":51233445,"url":"https://github.com/abhinai2244/save-restricted-content-bot","last_synced_at":"2026-06-28T18:01:53.861Z","repository":{"id":329729143,"uuid":"1117678105","full_name":"abhinai2244/save-restricted-content-bot","owner":"abhinai2244","description":"An advanced Telegram bot by CantarellaBots designed to save restricted content (Text, Media, Files) from both private and public channels. This bot supports batch downloading, user login via session strings, and advanced customization options.","archived":false,"fork":false,"pushed_at":"2026-05-18T07:20:11.000Z","size":65,"stargazers_count":42,"open_issues_count":3,"forks_count":117,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-18T09:36:47.106Z","etag":null,"topics":["bots","github","media-bot","pyrogram","python","restricted","restricted-content","save-content","telegram","telegram-api-integration","telegram-bot-ai-assistant","telegram-downloader","telegram-media-download","telegram-tools-list","telegram-userbot"],"latest_commit_sha":null,"homepage":"https://t.me/cantarellabots","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhinai2244.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-16T16:51:14.000Z","updated_at":"2026-05-18T07:24:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/abhinai2244/save-restricted-content-bot","commit_stats":null,"previous_names":["abhinai2244/save-restrict-bot","abhinai2244/save-restricted-content-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abhinai2244/save-restricted-content-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinai2244%2Fsave-restricted-content-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinai2244%2Fsave-restricted-content-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinai2244%2Fsave-restricted-content-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinai2244%2Fsave-restricted-content-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhinai2244","download_url":"https://codeload.github.com/abhinai2244/save-restricted-content-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhinai2244%2Fsave-restricted-content-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34898568,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-28T02:00:05.809Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bots","github","media-bot","pyrogram","python","restricted","restricted-content","save-content","telegram","telegram-api-integration","telegram-bot-ai-assistant","telegram-downloader","telegram-media-download","telegram-tools-list","telegram-userbot"],"created_at":"2026-06-28T18:01:51.683Z","updated_at":"2026-06-28T18:01:53.853Z","avatar_url":"https://github.com/abhinai2244.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Save Restricted Content Bot (Advanced)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Python-3.10+-blue?logo=python\u0026style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Library-Pyrogram-yellow?logo=telegram\u0026style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Database-MongoDB-green?logo=mongodb\u0026style=for-the-badge\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Status-Stable-success?style=for-the-badge\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cb\u003eA cleaner and improved version of the Save Restricted Content Bot with a better structure, smoother workflow, and practical features for real usage.\u003c/b\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/abhinai2244/SAVE-RESTRICT-BOT\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/View-Original%20Repository-black?style=for-the-badge\u0026logo=github\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## 🔗 Quick Links\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-features\"\u003e\u003cimg src=\"https://img.shields.io/badge/Features-View-blue?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"#-deployment\"\u003e\u003cimg src=\"https://img.shields.io/badge/Deployment-Setup-green?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"#-commands\"\u003e\u003cimg src=\"https://img.shields.io/badge/Commands-List-orange?style=for-the-badge\"\u003e\u003c/a\u003e\n  \u003ca href=\"#-support\"\u003e\u003cimg src=\"https://img.shields.io/badge/Support-Telegram-blue?style=for-the-badge\u0026logo=telegram\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n# 🚀 Features\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cb\u003e📦 Core Features\u003c/b\u003e\u003c/summary\u003e\n\n- **Save Restricted Content** — Download text, media, and files from restricted channels.\n- **Batch Mode** — Bulk download messages from public or private channels with auto-detection.\n- **User Login** — Login using `/login` to enable downloading capabilities.\n\n### ⚙️ Customization\n\n- Set custom captions (`/set_caption`)\n- Set custom thumbnails (`/set_thumb`)\n- Auto-delete or replace specific words\n\n### 💎 Premium System\n\n- Built-in system for free and premium users\n- Admin-controlled premium access\n\n### 👑 Admin Tools\n\n- Broadcast messages\n- Ban / Unban users\n- Manage premium status\n\n### 🧠 Persistent Storage\n\n- MongoDB-based user data and settings\n\n### ☁️ Keep Alive\n\n- Supports uptime services for Render / Heroku deployments\n\n\u003c/details\u003e\n\n---\n\n# 🛠 Deployment\n\n## ✅ Prerequisites\n\n- Python **3.10+**\n- MongoDB Database\n- Telegram API ID \u0026 Hash\n- Bot Token\n\n---\n\n## ⚙️ Environment Variables\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eClick to Expand\u003c/b\u003e\u003c/summary\u003e\n\n| Variable        | Description                                |\n| --------------- | ------------------------------------------ |\n| `BOT_TOKEN`     | Telegram Bot Token from BotFather          |\n| `API_ID`        | Telegram API ID                            |\n| `API_HASH`      | Telegram API Hash                          |\n| `ADMINS`        | Comma-separated Admin User IDs             |\n| `DB_URI`        | MongoDB Connection String                  |\n| `DB_NAME`       | Database Name (default: `SaveRestricted2`) |\n| `LOG_CHANNEL`   | Channel ID for logging users and errors    |\n| `ERROR_MESSAGE` | Send error messages to users               |\n| `KEEP_ALIVE`    | Use an uptime service like UptimeRobot     |\n\n\u003c/details\u003e\n\n---\n\n## 💻 Local Setup\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003cb\u003eInstallation Steps\u003c/b\u003e\u003c/summary\u003e\n\n### Clone the repository\n\n```bash\ngit clone https://github.com/abhinai2244/SAVE-RESTRICT-BOT.git\ncd SAVE-RESTRICT-BOT\n```\n\n### Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### Run the bot\n\n```bash\npython bot.py\n```\n\n\u003c/details\u003e\n\n---\n\n## 🐳 Docker\n\n```bash\ndocker build -t save-restricted-bot .\ndocker run -d --env-file .env save-restricted-bot\n```\n\n---\n\n# 📝 Commands\n\n## 👤 User Commands\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eClick to Expand\u003c/b\u003e\u003c/summary\u003e\n\n| Command     | Action                   |\n| ----------- | ------------------------ |\n| `/start`    | Start the bot            |\n| `/help`     | Get help information     |\n| `/login`    | Login to your account    |\n| `/logout`   | Logout from your account |\n| `/cancel`   | Cancel batch process     |\n| `/settings` | Open settings menu       |\n| `/myplan`   | Check your current plan  |\n| `/premium`  | View premium details     |\n\n### ⚙️ Customization\n\n- `/set_caption`\n- `/see_caption`\n- `/del_caption`\n- `/set_thumb`\n- `/view_thumb`\n- `/del_thumb`\n- `/thumb_mode`\n- `/set_del_word`\n- `/rem_del_word`\n- `/set_repl_word`\n- `/rem_repl_word`\n- `/setchat`\n\n\u003c/details\u003e\n\n---\n\n## 👑 Admin Commands\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eClick to Expand\u003c/b\u003e\u003c/summary\u003e\n\n- `/broadcast`\n- `/ban` / `/unban`\n- `/add_premium` / `/remove_premium`\n- `/users`\n- `/premium_users`\n- `/set_dump`\n- `/dblink`\n\n\u003c/details\u003e\n\n---\n\n# 🤝 Contributors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://t.me/cantarella_wuwa\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Abhi-Telegram-blue?style=for-the-badge\u0026logo=telegram\"\u003e\n  \u003c/a\u003e\n  \u0026nbsp;\n  \u003ca href=\"https://github.com/LastPerson07/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/LastPerson07-GitHub-black?style=for-the-badge\u0026logo=github\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n# 📞 Support\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://t.me/cantarellabots\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/cantarella-Official%20Channel-blue?style=for-the-badge\u0026logo=telegram\"\u003e\n  \u003c/a\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003ca href=\"https://t.me/THEUPDATEDGUYS\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Updates-Channel-blue?style=for-the-badge\u0026logo=telegram\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n⭐ If this project helped you, consider starring the repository!\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinai2244%2Fsave-restricted-content-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhinai2244%2Fsave-restricted-content-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhinai2244%2Fsave-restricted-content-bot/lists"}