-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
805 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Drone: python -m main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
echo "starting Bot ~@Am_RoBots"; | ||
python3 -m main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |