-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
9 changed files
with
878 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,11 @@ | ||
FROM archlinux:latest | ||
|
||
RUN pacman -Syyu --noconfirm | ||
RUN pacman -S --noconfirm python-pip zstd p7zip gcc | ||
RUN pip3 install -U pip | ||
RUN mkdir /app/ | ||
WORKDIR /app/ | ||
COPY . /app/ | ||
RUN pip3 install -U setuptools | ||
RUN pip3 install -U -r requirements.txt | ||
CMD bash start.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 @@ | ||
unzipper: bash start.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,101 @@ | ||
<h1 align="center">》 Unzipper Bot 《</h1> | ||
|
||
<p align="center"> | ||
A Telegram Bot to Extract Various Types Of Archives | ||
</p> | ||
|
||
</br></br> | ||
|
||
|
||
## Features | ||
|
||
- Extract various types of archives like `rar`, `zip`, `tar`, `7z`, `tar.xz` etc. | ||
- Password support for extracting | ||
- Extract archives from direct links | ||
- Broadcast Messages to users | ||
- Ban / Unban users from using your bot | ||
- Send logs in a private channel | ||
|
||
And Some other features 🔥! | ||
|
||
|
||
## Configs 📖 | ||
|
||
- `APP_ID` - Your APP ID. Get it from [my.telegram.org](my.telegram.org) | ||
- `API_HASH` - Your API_HASH. Get it from [my.telegram.org](my.telegram.org) | ||
- `BOT_OWNER` - Your Telegram Account ID. Get it from [@MissRose_bot](https://t.me/MissRose_bot) (Start the bot and send <samp>/info</samp> command). | ||
- `BOT_TOKEN` - Bot Token of Your Telegram Bot. Get it from [@BotFather](https://t.me/BotFather) | ||
- `MONGODB_URL` - Your MongoDB url, Tutorial [here](https://www.youtube.com/watch?v=0aYrJTfYBHU) | ||
- `LOGS_CHANNEL` - Make a private channel and forward a message from that channel to [@ChannelidHEXbot](https://t.me/ChannelidHEXbot) to Get this. (Make sure to add Your bot to the channel as an admin) | ||
|
||
</br> | ||
|
||
|
||
## Deploy 👀 | ||
|
||
Deploying is easy 🤫! You can deploy this bot in Heroku or in a VPS ♥️! **Star 🌟 Fork 🍴 and Deploy** | ||
|
||
> Note ⚠️ | ||
> This branch is using arch linux. | ||
> | ||
> But Why 🤔? Cuz arch's p7zip package is the only maintained version of [original p7zip](http://p7zip.sourceforge.net/) package with some additional features | ||
#### With Heroku | ||
|
||
<a href="https://www.heroku.com/deploy?template=https://github.com/Itz-fork/Unzipper-Bot/tree/arch"> | ||
<img src="https://www.herokucdn.com/deploy/button.svg"> | ||
</a> | ||
|
||
--- | ||
|
||
#### Self-Hosting | ||
|
||
```bash | ||
git clone -b arch https://github.com/Itz-fork/Unzipper-Bot.git | ||
cd Unzipper-Bot | ||
pip3 install -r requirements.txt | ||
|
||
# Arch linux only | ||
sudo pacman -S p7zip | ||
``` | ||
|
||
<h4 align="center">Edit config.py with your own values</h4> | ||
|
||
```bash | ||
bash start.sh | ||
``` | ||
|
||
--- | ||
|
||
**DONE 🥳, Enjoy The Bot! Be sure to Follow Me on [Github](https://github.com/Itz-fork) and Star 🌟 this repo to Show some support 😍!** | ||
|
||
</br> | ||
|
||
|
||
## Found a bug 🐞? | ||
|
||
If you found a bug in this bot please open an [issue](https://github.com/Itz-fork/Unzipper-Bot/issues) or report it at the [Support Group](#support). | ||
|
||
</br> | ||
|
||
|
||
## Support 💙 | ||
|
||
<a href="https://t.me/NexaBotsUpdates"> | ||
<img src="https://img.shields.io/badge/Updates_Channel-0a0a0a?style=for-the-badge&logo=telegram&logoColor=white"> | ||
</a> | ||
<a href="https://t.me/Nexa_bots"> | ||
<img src="https://img.shields.io/badge/Support_Group-0a0a0a?style=for-the-badge&logo=telegram&logoColor=white"> | ||
</a> | ||
|
||
</br> | ||
|
||
|
||
## License & Copyright 👮 | ||
|
||
``` | ||
Copyright (c) 2021 Itz-fork | ||
This Unzipper-Bot repository is licensed under GPLv3 License (https://github.com/Itz-fork/Unzipper-Bot/blob/master/LICENSE) | ||
Copying or Modifying Any Part of the code without permission is strictly prohibited | ||
``` |
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,52 @@ | ||
{ | ||
"name": "Unzipper Bot", | ||
"description": "A Telegram Bot to Extract Various Types Of Archives", | ||
"logo": "https://telegra.ph/file/dab7c08182e6d9e03bcef.jpg", | ||
"keywords": [ | ||
"7z", | ||
"Telegram Bot", | ||
"unzipper bot" | ||
], | ||
"website": "https://t.me/EDM115bots", | ||
"repository": "https://github.com/EDM115/unzip-bot", | ||
"success_url": "https://t.me/EDM115bots", | ||
"env": { | ||
"APP_ID": { | ||
"description": "Your APP_ID from my.telegram.org", | ||
"required": true | ||
}, | ||
"API_HASH": { | ||
"description": "Your API_HASH from my.telegram.org", | ||
"required": true | ||
}, | ||
"BOT_OWNER": { | ||
"description": "Telegram Id of your account", | ||
"required": true | ||
}, | ||
"BOT_TOKEN": { | ||
"description": "Your Bot Token From @BotFather", | ||
"required": true | ||
}, | ||
"MONGODB_URL": { | ||
"description": "Your MongoDB url, Get it from https://www.mongodb.com/", | ||
"required": true | ||
}, | ||
"LOGS_CHANNEL": { | ||
"description": "Make a private channel and forward a message from that channel to @ChannelidHEXbot and Get this", | ||
"required": true | ||
} | ||
}, | ||
"addons": [], | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/python" | ||
} | ||
], | ||
"formation": { | ||
"worker": { | ||
"quantity": 1, | ||
"size": "free" | ||
} | ||
}, | ||
"stack": "container" | ||
} |
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 @@ | ||
# Copyright (c) 2022 EDM115 | ||
|
||
import os | ||
|
||
class Config(object): | ||
APP_ID = int(os.environ.get("APP_ID")) | ||
API_HASH = os.environ.get("API_HASH") | ||
BOT_TOKEN = os.environ.get("BOT_TOKEN") | ||
LOGS_CHANNEL = int(os.environ.get("LOGS_CHANNEL")) | ||
MONGODB_URL = os.environ.get("MONGODB_URL") | ||
BOT_OWNER = int(os.environ.get("BOT_OWNER")) | ||
DOWNLOAD_LOCATION = f"{os.path.dirname(__file__)}/NexaBots" | ||
TG_MAX_SIZE = 2040108421 | ||
# Default chunk size (0.005 MB) Increase if you need faster downloads | ||
CHUNK_SIZE = 1024 * 6 |
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,5 @@ | ||
build: | ||
docker: | ||
worker: Dockerfile | ||
run: | ||
worker: bash start.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,9 @@ | ||
pyrogram | ||
TgCrypto | ||
pyromod | ||
motor | ||
dnspython | ||
psutil | ||
pykeyboard | ||
aiohttp | ||
aiofiles |
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,9 @@ | ||
echo " | ||
🔥 Unzip Bot 🔥 | ||
Copyright (c) 2022 EDM115 | ||
--> Join @EDM115bots | ||
--> Follow EDM115 on Github | ||
" | ||
python3 -m unzipper |