Save restricted Content Bot by devgagan | Enterprise Release June 2024.
Contact: Telegram
Update: This bot is updated with login functionalities, custom rename tag adding, log group, caption changing and and many more scroll down to last to see the latest update i.e. on 28 June 2024.
Bot link - CLICK HERE
A stable telegram bot to get restricted messages from group/channel/bot with custom thumbnail support , made by TEAM SPY This bot can run in channels directly.
How to get vars - TEAM SPY
-
BOT TOKEN: @Botfather on telegram -
OWNER_ID: Go to @missrose_bot, start and send /info to get your id -
FORCESUB: Before starting building bots create a public channel and get the username without '@'Make bot admin in that channel. -
LOG_GROUP: Get is by copying any post link and extract value just afterhttps:t.me/c/and next/then after put-100before it. Make bot ADMIN in that channel or group. -
API_IDandAPI_HASH: Telegram.org -
PYROGRAM_V2_SESSION: Search for it ... Make sure the source be trusted otherwise it will lead to accound delete or ban -
MONGO_DB: Create new mongo db it is not recommended to use the default one if you dont know how to create you can use otherwise dont use bcz it may lead to account hack/deletion through session.
Deploying Guide - TEAM SPY
Easy Method:
- Fork and star the repo
- Go to main then edit
config.pyas below - Put respective values in
""and save.
API_ID = int(getenv("API_ID", ""))
API_HASH = getenv("API_HASH", "")
BOT_TOKEN = getenv("BOT_TOKEN", "")
OWNER_ID = int(getenv("OWNER_ID", ""))
MONGODB_CONNECTION_STRING = getenv("MONGO_DB", "mongodb+srv://ggn:ggn@ggn.upuljx5.mongodb.net/?retryWrites=true&w=majority&appName=ggn")
LOG_GROUP = int(getenv("LOG_GROUP", ""))
SESSION = getenv("PYROGRAM_V2_SESSION", "")
FORCESUB = getenv("FORCESUB", "")
- Now run following commands one by one...
sudo apt update
sudo apt install ffmpeg git python3-pip
git clone your_repo_link
cd you_repo_name
pip3 install -r requirements.txt
python3 -m ggn
- if you want bot to be running in background then enter
screen -S gaganbeforepython3 -m ggn - after
python3 -m ggn, clickctrl+A,ctrl+D - if you want to stop bot, then enter
screen -r gaganand to kill screen enterscreen -S gagan -X quit.
» Method - 1:
» Method - 2:
- Star the repo, rate and fork it in desktop mode
- create app in heroku
- go to settings of
app›› config vars››add all variables - add buildpacks i.e.
pythonandhttps://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git - connect to github and deploy
- turn on dynos
- Note: you must add buildpack in heroku to get the original video thumbnail and to remove already set thumbnail otherwise you will get black video How to add?
- Go to heroku settings
- scroll down and click add buildpack
- now paste following link i.e
https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.gitin input bar and click add buildpack - Now go back and redeploy
see following tutorial 👇 https://t.me/save_restricted_content_bots/759
Just select repo and do build by dockerfile
Visit Terms and accept the guidelines.
-
New fresh files uploaded by fixing old errors for ex.
float division by zerofor know filetypes /peer_id invalidfor some chats not all -
VPS Deployment guide updated Removed unwanted behaviour of MONGO_DB
-
Permanent session storage
-
Removed bunches of commands handlers and merged them in button format under a single command
/settings. -
Note: I can add the phone based login but it may lead to account ban that's why I prefer SESSION based login. If you want phone number based login try
leakrepobranch of this repository.
Added remaining variables direct input from env no need to edit the batch.py, pyroplug.py, start.py when working with environment based deployer
This release introduces enterprise-level features with advanced authentication logic, empowering users with the /auth and /unauth commands.
- Login Functionality: User can add their session via
/addsession SESSIONcommand to extract without links. - Custom Rename: Set custom filenames using the
/setrenamecommand. - Custom Caption: Define personalized captions with the
/setcaptioncommand. - Delete Functionality: Remove unwanted words from filenames and captions via the
/deletecommand. - Word Replacer: Replace specific words in captions using the
/replace 'OLD_WORD', 'NEW_WORD'command. - Broadcast: Send messages to all users using the
/broadcast MESSAGEcommand. - Batch Processing: Two modes available,
/bulkand/batch, for efficient batch operations. - User Bot Login: The
promethod allows saving restricted pictures from DMs or bots. - Multiple Hosting: The
/hostmethod allows to host many bot in a single process.
&&&&& and many more have a look below
You can copy and paste the following commands into @BotFather:
start - ✅ Check if I am alive!
batch - 😎 batch method
dl - 🎞 Download videos from YouTube, Xsite, Instagram, Amazon Mini TV, Pinterest, LinkedIn, Internet Archive, etc. /dl <link>
auth - authorize users
unauth - revoke access
settings - Get all settings in a single command for rename, replace delete, setchat everything
broadcast - send message to bot users
plan - 💰 Learn about premium plan details
terms - 📋 View the bot's terms and conditions
stats - 📊 Check the statistics
speedtest - 🔴 Check speed (Only for sudo users)
get - 🙃 Get a list of current users
list - 🍏 List authorized users
lock - ⚡ Add channels to the protected list to prevent extraction
pro - 💎 Add session to save restricted files from private chats/bots
noob - 😭 Delete the Pro activation
host - ☁️ Host your own SRC Bot
unhost - 🌨️ Unhost the SRC and FWD Bot
help - 😧 Get command help
cancel - ❌ Cancel ongoing process
Note: Changing the terms and commands doesn't magically make you a developer. Real development involves understanding the code, writing new functionalities, and debugging issues, not just renaming things. If only it were that easy!