Git Product home page Git Product logo

saverestrictedcontentbot's Introduction

Buy Me A Coffee

Save restricted content Bot

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

saverestrictedcontentbot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

saverestrictedcontentbot's Issues

Crashed

Help me to solve this error
What type of typing error it shows?
Screenshot_2023-10-04-19-08-01-63_40deb401b9ffe8e1df2f1cc5ba480b12

~@DroneBots problem

I am trying to deploy the bot on Digitalocean, but even though I have entered the right Vars , it still connects to a bot called Dronebot.
Log as below.
[saverestrictedcontentbot] [2023-04-22 20:36:52] starting Bot ~@DroneBots
[saverestrictedcontentbot] [2023-04-22 20:37:00] Userbot Error ! Have you added SESSION while deploying??

cannot import name 'video_metadata' from 'ethon.pyfunc'

2023-03-09 21:13:46 srcbot | starting Bot ~@DroneBots
2023-03-09 21:13:57 srcbot | Traceback (most recent call last):
2023-03-09 21:13:57 srcbot | File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2023-03-09 21:13:57 srcbot | return _run_code(code, main_globals, None,
2023-03-09 21:13:57 srcbot | File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
2023-03-09 21:13:57 srcbot | exec(code, run_globals)
2023-03-09 21:13:57 srcbot | File "/app/main/main.py", line 16, in
2023-03-09 21:13:57 srcbot | load_plugins(plugin_name.replace(".py", ""))
2023-03-09 21:13:57 srcbot | File "/app/main/utils.py", line 12, in load_plugins
2023-03-09 21:13:57 srcbot | spec.loader.exec_module(load)
2023-03-09 21:13:57 srcbot | File "", line 790, in exec_module
2023-03-09 21:13:57 srcbot | File "", line 228, in _call_with_frames_removed
2023-03-09 21:13:57 srcbot | File "main/plugins/frontend.py", line 8, in
2023-03-09 21:13:57 srcbot | from main.plugins.pyroplug import get_msg
2023-03-09 21:13:57 srcbot | File "/app/main/plugins/pyroplug.py", line 11, in
2023-03-09 21:13:57 srcbot | from ethon.pyfunc import video_metadata
2023-03-09 21:13:57 srcbot | ImportError: cannot import name 'video_metadata' from 'ethon.pyfunc' (/usr/local/lib/python3.9/site-packages/ethon/pyfunc.py)
2023-03-09 21:13:57 srcbot | main has Imported helpers
2023-03-09 21:13:57 srcbot | main has Imported start
1970-01-01 00:00:00 srcbot exited with code 1
1970-01-01 00:00:00

Error

image

Please help to fix this error.

Can you give me your Telegram address?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.