Coder Social home page Coder Social logo

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

View Code? Open in Web Editor NEW
98.0 7.0 292.0 1.42 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

License: MIT License

Dockerfile 0.97% Procfile 0.02% Python 98.95% Shell 0.06%
telegram-bot save-restricted-content-bot team-spy-save-restricted-repo

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

Save restricted Content Bot | Enterprise Release June 2024.

Contact: Telegram


ENTERPRISE RELEASE INFO

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.

Features:

  • Able to extract the content the from private or public enntities/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
  • Able to download Youtube videos + 30 more sites supported via /dl command

Try Live Bot

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 after https:t.me/c/ and next / then after put -100 before it. Make bot ADMIN in that channel or group.

  • API_ID and API_HASH: Telegram.org

  • 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

Deploy on VPS

Easy Method:

  • Fork and star the repo
  • Go to main then edit config.py as 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", "")
LOG_GROUP = int(getenv("LOG_GROUP", ""))
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 gagan before python3 -m ggn
  • after python3 -m ggn, 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

» Method - 1:

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

» Method - 2:

  • Star the repo, rate and fork it in desktop mode
  • create app in heroku
  • go to settings of app›› reveal config vars›› add all variables as shown above by typing their correct name and value.
  • add buildpacks i.e. python and https://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.git in input bar and click add buildpack
  • Now go back and redeploy

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

Last update 8 JULY 2024

Available Commands

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>
login - login via phone number
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
session - generate Pyrogram V2 session
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

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!

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

Contributors

devgaganin avatar

Stargazers

Kishan Delvadiya avatar Xlaez avatar  avatar Sheikh Eismile Ahmed Sayem avatar N I avatar Tarun avatar Shaibhav khis avatar  avatar Shubham Panchal avatar  avatar  avatar Apurv Arya avatar  avatar  avatar  avatar shubham raj avatar  avatar  avatar  avatar Tony Stark avatar  avatar  avatar TimmyGahmen(2nd) avatar Tzunami.dev avatar  avatar  avatar  avatar  avatar  avatar ROMLEX SIR avatar  avatar  avatar  avatar  avatar  avatar KUNAL avatar  avatar  avatar ѕнιναм ツ avatar  avatar  avatar  avatar Anand  avatar  avatar Satyamisme avatar Sahil  avatar  avatar Brainded Kazuma avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Gurveer avatar  avatar  avatar  avatar  avatar  avatar  avatar Shabbir Mahmud avatar Poker™ avatar Aditya avatar Surya Bishnoi love ❤️  B  avatar  avatar Vlavin avatar  avatar ANKUSH avatar  avatar  avatar  avatar  avatar Muhammad Aadil avatar Appu John avatar  avatar  avatar  avatar  avatar Priya Chaudhary avatar  avatar  avatar Ak 47 BRAR avatar  avatar Aloneboy avatar  avatar  avatar  avatar TimmyGahmen avatar Vixen avatar  avatar  avatar  avatar  avatar StubbornDEvil avatar  avatar  avatar

Watchers

 avatar Satyamisme avatar Vixen avatar  avatar  avatar  avatar  avatar

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

/setchat not working

i uset /setchat to set to my public channel ID

after the file be download with /dl youtubeurl , the message not forward to my public channel

Batch command

IMG_20240608_105042_521

  • Range must be an integer!
  • by default your thumbnail was not set on video so better is to remove default thumbnail
    • Range must be an integer! (Only saving only 1 last content not all)
    • why start downloading content even save restricted is off on private channel

Error

Screenshot_20240611_180424

  • cancel command not working
  • can you add modules for custom caption like
    {file_duration} - Duration of the file
    {file_name} - Name of the file
    {file_size} - Size of the file
    {file_extension} - Extension of the file
    And any text to add on custom caption

Copy Photos only in Botchat

I set a destination channel in the Bot with
setchat

With Videos + Documents it works perfect. only if I try to copy Photos the bot only upload them in the "Botchat" not in the "setchat" (Channel)

(if I am the only one with this problem?)

and on this way thank you very much for this awesome bot

Support Batch Download Youtube Videos

current /dl yotube url can only download a video,
can support /dl playlist url, or /dl channel url or /dl muti youtube url to download muti videos ?

Not a single branch koyeb is working ❌

Using this repo means wasting time.

Not a single branch koyeb is working ❌

I have to say sorry. This repo I've been trying to deploy for a few hours. But the bot was not successful. Publish your repo after its successful for complete. Or make it private. Annoy people

Contact

Hello,

sorry that I write here, I try to contact you but:

  • Telegram Channel (I can not answer in the channel, or see your contact accound)
  • E-Mail is not existing anymore ?
  • Website works, but the contacts options not ....
  • linkedIn I not have :-/

If you like write me

Thank you

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.