Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AM-ROBOTS authored Oct 12, 2022
1 parent 3515e46 commit 57024da
Show file tree
Hide file tree
Showing 8 changed files with 805 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.9.2-slim-buster
RUN mkdir /app && chmod 777 /app
WORKDIR /app
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -qq update && apt -qq install -y git python3 python3-pip ffmpeg
COPY . .
RUN pip3 install --no-cache-dir -r requirements.txt
CMD ["bash","bash.sh"]
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drone: python -m main
67 changes: 65 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,65 @@
# SaveRestrictedContentBot
SaveRestrictedContentBot @AM_ROBOTS
<h1 align="center">
<b>Save restricted content Bot</b>
</h1>

Contact: [Telegram](https://t.me/sources_cods)

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](https://t.me/USERS_RO_BOT) or [Telegram.org](https://my.telegram.org/auth)

PYROGRAM SESSION: [SessionGen Bot](https://t.me/SessionString_Ro_Bot) or [![Run on Repl.it](https://replit.com/badge/github/vasusen-code/saverestrictedcontentbot)](https://replit.com/@ShivPrasad1/GenerateStringSession)

BOT TOKEN: @Botfather on telegram

# Deploy

Deploy your bot on `Render`

Tutorial - [Click here](https://t.me/sources_cods)

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](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/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](https://t.me/sources_cods)

[![Develop on Okteto](https://okteto.com/develop-okteto.svg)](https://cloud.okteto.com)
47 changes: 47 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "Save restricted content bot",
"description": "Telegram bot to save restricted content.",
"logo": "",
"keywords": [
"telegram",
"Save restricted content",
"bot"
],
"repository": "https://github.com/8769ANURAG/SaveRestrictedContentBot",
"website": "",
"success_url": "https://t.me/sources_cods",
"env": {
"API_HASH": {
"description": "Your API HASH from my.telegram.org",
"value": ""
},
"API_ID": {
"description": "Your API ID from my.telegram.org",
"value": ""
},
"BOT_TOKEN": {
"description": "Bot token, get it from @BotFather.",
"value": ""
},
"SESSION": {
"description": "Pyrogram string session.",
"value": ""
},
"AUTH": {
"description": "User ID of Bot owner.",
"value": ""
},
"FORCESUB": {
"description": "Username name of public channel without using '@'.",
"value": ""
}
},
"buildpacks": [
{
"url": "heroku/python"
},
{
"url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git"
}
]
}
2 changes: 2 additions & 0 deletions bash.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
echo "starting Bot ~@Am_RoBots";
python3 -m main
15 changes: 15 additions & 0 deletions okteto-stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:
drone-srcb:
build: .
environment:
API_ID: $API_ID
API_HASH: $API_HASH
BOT_TOKEN: $BOT_TOKEN
SESSION: $SESSION
AUTH: $AUTH
FORCESUB: $FORCESUB
ports:
- 8080
resources:
cpu: 1000m
memory: 3Gi
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Github.com/8769Anurag

ethon==1.3.6
cryptg
tgcrypto
pyrogram==1.4.16

0 comments on commit 57024da

Please sign in to comment.