Git Product home page Git Product logo

herokutest007 / save-restricted-content-bot-v2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devgaganin/save-restricted-content-bot-v2

0.0 0.0 0.0 1.47 MB

A stable telegram bot to get restricted messages with custom thumbnail support , made by TEAM SPY This bot can run in channels directly + YouTube video downloading support along with 30+ more sites

Home Page: https://devgagan.in

Shell 0.06% Python 98.95% Dockerfile 0.97% Procfile 0.02%

save-restricted-content-bot-v2's Introduction

Save restricted Content Bot master-V1 branch | Summer Release V2

Contact: Telegram


ABOUT THIS BRANCH

This branch is purely based on Pyrogram V2 with more stability


Features:

  • Able to extarct the content the from private or public entities/channels/group
  • direct rename and forward to channel/group/users
  • Custome caption/thumbnail
  • auto default thumbnail removal from videos
  • Deleting/Replacing words from file name and caption
  • Easy to use and deploy
  • auto pin messages(if they are pinned)
  • login via phone number

Deploying Guide - TEAM SPY

How to get required vars

  • API_ID and API_HASH from telegram.org
  • BOT_TOKEN: @Botfather on telegram
  • OWNER_ID : Go to @missrose_bot on telegram and send /info to know your ID
  • CHANNEL_ID : This will be used as Force Subscribe channel
  • LOG_GROUP: Create a Group or Channel add you bot there and forward any message of that channel/group to @userinfobot to know the ID of you channel/group
  • MONGO_DB: It is recommended to use your mongoDB to avoid session hacks and all Note : You must make bot admin in both channels

Deploy on VPS

Easy Method:

  • Fork repo
  • Go to config.py as below
  • Fill variables inside the double quoted commas ""
  • 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 devgagan
  • if you want bot to be running in background then enter screen -S gagan before python3 -m devgagan
  • after python3 -m devgagan, click ctrl+A, ctrl+D
  • if you want to stop bot, then enter screen -r gagan and to kill screen enter screen -S gagan -X quit.

Deploy your bot on heroku

  • Star the repo, and fork it in desktop mode
  • Click on Deploy
  • Fill your values and click deploy ✅

Deploy on Render

  • Fork and star the repo
  • edit config.py same as guided for VPS deployment (you can edit on render also by filling enviroment variables)
  • Go to render.com and singup/signin
  • create new web service and select free plan
  • connect github and your repository
  • Click Deploy
  • Done ✅

Koyeb Deployment

  • Fork and star the repo
  • edit config.py same as guided for VPS deployment (you can edit on koyeb also by filling enviroment variables)
  • Go to koyeb.com and singup/signin
  • create new web service make sure you must choose build type Dokerfile because in Koyeb as a default it is checked to buildpacks so you have to change that.
  • connect github and your repository
  • Click Deploy
  • Done ✅

Terms of USE / Modification

Visit Terms and accept the guidelines.

Updates

Update: 16 Aug 2024

  • Added /logout command to delete the session files from mongodb and local memory
  • Fixed premium membership auto expiration (after subscription ends).

Update: 7 JULY 2024

  • Added /login method via phone number
  • Added auto pinning of messages
  • fixed float division by zero
  • Session saving permanently
  • Fixed old bugs
  • Added /add and /remove along with parameters of user_id and time for the period of premium subscription.
  • All old features along with button handler

Important Note

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!

Contributers

My group members contact... Join @devggn to know them.

Thanks!

save-restricted-content-bot-v2's People

Contributors

devgaganin avatar

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.