Save restricted Content Bot by devgagan.in
Contact: Telegram
Bot link -https://t.me/advance_content_saver_bot
A stable telegram bot to get restricted messages with custom thumbnail support , made by TEAM SPY This bot can run in channels directly (in this case custom thumbnail not supported)
- works for both public and private chats
- Custom thumbnail support for Pvt medias
- supports text and webpage media messages
- Faster speed
- Force subscribe available
- To save from bots send link in this format :
t.me/b/bot_username/message_id
(use plus messenger for message_id) /batch
- (For owner only) Use this command to save upto 10000 files from a pvt or public restricted channel at once./cancel
- Use this to stop batch- Time delay is added to avoid FloodWait and keep user account safe.
/setchat
directly upload in channel or group
API_ID
API_HASH
SESSION
BOT_TOKEN
AUTH
- Owner user idFORCESUB
- Public channel username without '@'. Don't forget to add bot in channel as administrator.
API: Telegram.org
PYROGRAM SESSION: Search for it ... Make sure the source be trusted otherwise it will lead to accound delete or ban
How to get vars - TEAM SPY
BOT TOKEN: @Botfather on telegram
AUTH: 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 withou '@'
Deploying Guide - TEAM SPY
Easy Method:
- Go to main then edit
__init__.py
as below - Place
#
before everyconfig
and after=
write your vars in single inverted comma. see example below
# variables
API_ID = "1234567" #config("API_ID", default=None, cast=int)
API_HASH = "1167433546577f90e4519b65634b7" #config("API_HASH", default=None)
BOT_TOKEN = "7173773796:AAEYdIdgUg1_SYR7wSaMpgY0" #config("BOT_TOKEN", default=None)
SESSION = "BQHDMOUAIOGZHesmwkhKztZ1bU7NokB1HVLtNKHAnr35ElBp-FQ7IPkvayF0s5JoOGLN44ksi4kqeUNxnG56Vd8Mh_2Lo3ICHSN2J2u0WyYIOj96FBxN2gq_iekABQkL-vdXTB1DrOswqzBJBG9RaGPFVoiEYDAd0iD2vqgT3x2wOz98gBZNKPCGpWQYbGR6GKe66W5SRZRlLWJaEDQcTEIxNF48nIEGW7cwK2AG3eR4-iyVg5Zxaje_ACeNuCN5kLtQsNkGEV23f7-EdLQTG1zKnZ57AjUvYQdJ7o1pdGhkKknUUmOcfG4xn42RbHUwccqD1CmsGLU5Zh-vTbgBGh9AiP79HAAAAAGlHSMFAA" #config("SESSION", default=None)
FORCESUB = "channel username without @" #config("FORCESUB", default=None)
AUTH = "1234567" #config("AUTH", default=None)
- 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 main
- if you want bot to be running in background then enter
screen -S gagan
beforepython3 -m main
- after
python3 -m main
, clickctrl+A
,ctrl+D
- if you want to stop bot, then enter
screen -r gagan
and to kill screen enterscreen -S gagan -X quit
.
» Method - 1:
- Star the repo, and fork it in desktop mode
- Go to settings of your forked repo
- Rename your repo by any other name
- Click on
» Method - 2:
- Star the repo, and fork it in desktop mode
- create app in heroku
- go to settings of
app›› config vars››
add all variables - add buildpacks
- connect to github and deploy
- turn on dynos
Editing Repo - TEAM SPY
You can freely edit repo the customisation you can do is -
- Change command pattern like
/batch
to other name (edit this inmain/plugins/batch.py
) by searching and replacing/batch
to desired command. - Adding Custom Text in caption (edit this in
main/plugins/pyroplug.py
) search for
caption = f"{msg.caption}\n\n__Unrestricted by **[Team SPY](https://t.me/devggn)**__" if msg.caption else "__Unrestricted by **[Team SPY](https://t.me/devggn)**__"
change accordingly within f""
- Change Start pic and text (edit this in
main/plugins/start.py
) search forTEXT=
,START_PIC=
and then edit those after=
- Change Default thumbnail in main directory there is file named
thumb.jpg
remove that and upload your customthumb.jpg
- Change cancel command (edit this also in
batch.py
) search for/cancel
and then change the command accordingly
Commands Available in Bot - TEAM SPY
/start
- to start the bot/batch
- to download the files in range/bulk by giving one post link and range value/cancel
- to cancel the onging /batch task/stats
- to viewing the statics of bot/speedtest
- can be executed by owner only/setchat
- Set forwarding to a channel/group via channel/group ID including -100
Visit Terms and accept the guidelines.
- Fixed Peer ID Invalid Error
- Removed
invalid
command handler as it is not needed anymore
- in
batch.py
,.json
method implemented for saving batch details on/batch
command. cancel
command fixed to clear the batch details and stop further processing./dl
command added to download videos fromyoutube
,pinterest
,linkedin
,internet archive
,amazon mini tv
,xvi..deos
,xn..xx
sites.set
andremt
callback handlers removed now you have to send pic directly to set it as thumbnail and/remthumb
to remove to thumbnail./logs
command added to get the logs directly on telegram (now upto 2 min you can increase it accordingly)/help
command added- Private topic groups are now supported, single link (for batch processing modify code by yourself)
- fixed peer id invalid error for some channel which do not support
-100
as prefix, use/invalid
command to deal with this error (not fully resolved yet) - Contact us on Telegram and request new changes and report bugs.