-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit 04ecb64
Showing
10 changed files
with
699 additions
and
0 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,33 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update | ||
RUN echo y | apt-get install locales | ||
RUN echo y | apt install build-essential | ||
RUN apt -qq install -y --no-install-recommends \ | ||
curl \ | ||
git \ | ||
gnupg2 \ | ||
wget \ | ||
|
||
RUN set -ex; \ | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
busybox \ | ||
git \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-lxml \ | ||
pv \ | ||
&& apt-get autoclean \ | ||
&& apt-get autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip3 install setuptools wheel yarl multidict | ||
COPY requirements.txt . | ||
RUN pip3 install -r requirements.txt | ||
RUN dpkg-reconfigure locales | ||
COPY . /app | ||
|
||
CMD ["python3", "bot.py"] |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 Techy Tel | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 @@ | ||
worker: python3 bot.py |
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,73 @@ | ||
# Adv-File-Store-Bot | ||
|
||
<p align="center"> | ||
<img src="https://telegra.ph/file/a8b218503819afb6f9b83.jpg"><br> | ||
|
||
<a href="https://t.me/techytel"> | ||
<img src="https://img.shields.io/badge/Techy%20Tel-Channel-blue?style=flat-square&logo=telegram" width="130" height="18"> | ||
</a> | ||
<a href="https://t.me/techytelsupport"> | ||
<img src="https://img.shields.io/badge/Techy%20Tel-Group-blue?style=flat-square&logo=telegram" width="130" height="18"> | ||
</a> | ||
|
||
<br> | ||
<a href="https://github.com/evertel/Adv-File-Store-Bot/stargazers"> | ||
<img src="https://img.shields.io/github/stars/evertel/Adv-File-Store-Bot?style=social"> | ||
</a> | ||
<a href="https://github.com/Evertel/Adv-File-Store-Bot/fork"> | ||
<img src="https://img.shields.io/github/forks/evertel/Adv-File-Store-Bot?label=Fork&style=social"> | ||
</a> | ||
</p> | ||
|
||
|
||
โ This Is An Adv File Store Bot, Which Support Url Shortner & Auto Delete Message. โ | ||
|
||
|
||
* **Language:** [Python3](https://www.python.org) | ||
* **Library:** [Pyrogram](https://docs.pyrogram.org) | ||
|
||
### Features: | ||
- In PM Just Forward or Send any file it will save on Database & give you the Access Link. | ||
- In Channel Add Bot as Admin with Edit Rights. When you will send any file or media in Channel it will Edit the Broadcast Message with Saved Link Button. | ||
- You can also Broadcast anythings via this Bot. | ||
- You can also Do Force Sub to a Channel to allow access the Bot. | ||
|
||
|
||
![Configs](https://telegra.ph/file/033408792afc4d4f1f8f6.png) ๐ค | ||
|
||
- `API_ID` - Get this from [my.telegram.org](https://my.telegram.org) | ||
- `API_HASH` - Get this from [ my.telegram.org ](https://my.telegram.org) | ||
- `BOT_TOKEN` - Get this from [@BotFather](https://t.me/BotFather) | ||
- `BOT_USERNAME` - You Bot Username. *(Without [@])* | ||
- `DB_CHANNEL` - A Telegram Channel ID. | ||
- Make a Channel for Storing Files. We will use that as Database. Channel must be Private! Else you will be Copyright by [Telegram DMCA](https://t.me/dmcatelegram)! | ||
- `BOT_OWNER` - Bot Owner UserID | ||
- Put your Telegram UserID for doing Broadcast. | ||
- `DATABASE_URL` - MongoDB Database URI | ||
- This for Saving UserIDs. When you will Broadcast, bot will forward the Broadcast to DB Users. | ||
- `UPDATES_CHANNEL` - Force Sub Channel ID *(Optional)* | ||
- ID of a Channel which you want to do Force Sub to use the bot. | ||
- `LOG_CHANNEL` - Logs Channel ID | ||
- This for some getting user info. If any new User added to DB, Bot will send Log to that Logs Channel. You can use same DB Channel ID. | ||
|
||
### Deploy Now: | ||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/evertel/Adv-File-Store-Bot) | ||
|
||
## Commands: | ||
``` | ||
start - start the bot | ||
clear_batch - Clear User Batch Files | ||
status - Show number of users in DB [Owner Only] | ||
broadcast - Broadcast replied message to DB Users [Owner Only] | ||
ban_user - [user_id] [ban_duration] [ban_reason] Ban Any User [Owner Only] | ||
unban_user - [user_id] Unban Any User [Owner Only] | ||
banned_users - Get All Banned Users [Owner Only] | ||
``` | ||
|
||
### ๐๐ฎ๐ฉ๐ฉ๐จ๐ซ๐ญ ๐๐ซ๐จ๐ฎ๐ฉ: | ||
<a href="https://t.me/Techytelsupport"><img src="https://img.shields.io/badge/Telegram-Join%20Telegram%20Group-green.svg?logo=telegram"></a> | ||
### ๐๐ฉ๐๐๐ญ๐๐ฌ ๐๐ก๐๐ง๐ง๐๐ฅ: | ||
<a href="https://t.me/TechyTel"><img src="https://img.shields.io/badge/Telegram-Join%20Telegram%20Channel-yellow.svg?logo=telegram"></a> | ||
|
||
|
||
# โฅ๏ธ Thanks For Your Support & Love โฅ๏ธ |
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,55 @@ | ||
{ | ||
"name": "File Store Bot", | ||
"description": "A Advance Telegram Files Store Bot to protect your Files in Pyrogram by @TechyTel", | ||
"keywords": [ | ||
"telegram", | ||
"files", | ||
"store", | ||
"bot" | ||
], | ||
"repository": "https://github.com/Evertel/Adv-File-Store-Bot", | ||
"website": "https://telegram.dog/techytel", | ||
"success_url": "https://t.me/techytel", | ||
"logo": "https://telegra.ph/file/dda1a091bd1172105fb8a.jpg", | ||
"env": { | ||
"API_ID": { | ||
"description": "Get this value from my.telegram.org or @TeleORG_Bot" | ||
}, | ||
"API_HASH": { | ||
"description": "Get this value from my.telegram.org or @TeleORG_Bot" | ||
}, | ||
"BOT_TOKEN": { | ||
"description": "Get this from @BotFather" | ||
}, | ||
"BOT_USERNAME": { | ||
"description": "Your Bot Username which you sent to @BotFather (Without [@])" | ||
}, | ||
"DB_CHANNEL": { | ||
"description": "The Channel ID which will be used as Database. Example: -100123456789" | ||
}, | ||
"BOT_OWNER": { | ||
"description": "Bot Owner UserID" | ||
}, | ||
"DATABASE_URL": { | ||
"description": "MongoDB Database URI for Saving UserID for Broadcast." | ||
}, | ||
"UPDATES_CHANNEL": { | ||
"description": "ID of a Channel which you want to do Force Sub to use the bot. Example: -100123456789", | ||
"required": false | ||
}, | ||
"LOG_CHANNEL": { | ||
"description": "Logs Channel ID for some Tracking XD. Example: -100123456789" | ||
} | ||
}, | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/python" | ||
} | ||
], | ||
"formation": { | ||
"worker": { | ||
"quantity": 1, | ||
"size": "free" | ||
} | ||
} | ||
} |
Oops, something went wrong.