Skip to content

kizxlove/SaveRestrictedContentBot

 
 

Repository files navigation

Save restricted content Bot

Contact: Telegram

A stable telegram bot to get restricted messages with custom thumbnail support , made by Mahesh Chauhan.

  • works for both public and private channels
  • Custom thumbnail support for Pvt medias
  • supports text and webpage media messages
  • Faster speed
  • Forcesubscribe available
  • /batch - (For owner only) Use this command to save upto 100 files from a pvt or public restricted channel at once.
  • Time delay is added to avoid FloodWait and keep user account safe.

Variables

  • API_ID
  • API_HASH
  • SESSION
  • BOT_TOKEN
  • AUTH - Owner user id
  • FORCESUB - Public channel username without '@'. Don't forget to add bot in channel as administrator.

Get API & PYROGRAM string session from:

API: API scrapper Bot or Telegram.org

PYROGRAM SESSION: SessionGen Bot or Run on Repl.it

BOT TOKEN: @Botfather on telegram

Deploy

Deploy on VPS

Easy Method:

For Linux
  • Intall docker-compose
  • Fill in the variables in docker-compose.yml file using your favorite text editor or nano
  • Start the container
sudo apt install docker-compose -y
nano docker-compose.yml
sudo docker-compose up --build
For Windows

Replace

RUN pip3 install --no-cache-dir -r requirements.txt

with

RUN dos2unix bash.sh && pip3 install --no-cache-dir -r requirements.txt in Dockerfile

Then run this command in terminal

docker-compose up --build -d

The hard Way:

  • Fill vars in your fork in this file as shown in this picture
  • enter all the below commands
sudo apt update
sudo apt install ffmpeg git python3-pip
git clone your_repo_link
cd saverestrictedcontentbot 
pip3 install -r requirements.txt
python3 -m main
  • if you want bot to be running in background then enter screen -S srcb before python3 -m main
  • after python3 -m main, click ctrl+A, ctrl+D
  • if you want to stop bot, then enter screen -r srcb and click ctrl+A then press K and enter Y.

Deploy your bot on Render

Tutorial - Click here

Deploy your bot on heroku

» 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 Deploy

» 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

Buildpacks for manual deploy:

  • heroku/python
  • https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

Deploy your bot on Okteto [Useless]

Tutorial for okteto - click here

Develop on Okteto

About

Telegram bot to save Restricted Content

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.2%
  • Dockerfile 1.5%
  • Other 0.3%