Sign inSign up

edm115/unzip-bot

By edm115

โ€ขUpdated 7 months ago

https://github.com/EDM115/unzip-bot

Image
Languages & frameworks
Web servers
1

2.0K

edm115/unzip-bot repository overview

โ Unarchiver Bot

โ A Telegram bot to extract various types of archives

Unzip logo

DeepSource

Unzip-Bot Analytics



โ Working bot ๐Ÿฅฐ

@unzip_edm115botโ 

โ Features ๐Ÿ‘€

  • Extract all format of archives like rar, zip, tar, 7z, tar.xz, โ€ฆ

  • Supports password protected archives

  • Extract archives from direct links

  • Broadcast messages to users

  • Ban / Unban users from using your bot

  • Send logs in a private channel/group

  • Can run only one extract per user at a time

  • Fast to answer and process tasks

  • Thumbnail can be set

  • Problems can be directly reported

  • Can send a message to a specific user

  • Get infos about users

  • Can rename files

  • Able to process splitted archives (.001)

  • And some other features ๐Ÿ”ฅ Dive into the code to find them ๐Ÿคญ

โ Config vars ๐Ÿ“–

  • APP_ID - Your APP ID. Get it from my.telegram.orgโ 
  • API_HASH - Your API_HASH. Get it from my.telegram.orgโ 
  • BOT_OWNER - Your Telegram Account ID. Get it from @MissRose_botโ  (Start the bot and send /info command).
  • BOT_TOKEN - Bot Token of Your Telegram Bot. Get it from @BotFatherโ 
  • MONGODB_URL - Your MongoDB URL (tutorial hereโ )
  • LOGS_CHANNEL - Make a private channel and get its ID (search on Google if you don't know how to do). Using a group works as well, just add Roseโ , then send /id (In both cases, make sure to add your bot to the channel/group as an admin !)

โ Commands โœ๏ธ

Copy-paste those to BotFather when he asks you for them

commands - Get commands list
mode - Upload as Doc ๐Ÿ“„ / Media ๐Ÿ“บ
addthumb - Add custom thumbnail 
delthumb - Remove your thumbnail 
stats - Know if bot is overused
clean - Cancel on-going process
help - In case you need ๐Ÿ˜ญ

โ Deploy ๐Ÿšง

Deploying is easy ๐Ÿฅฐ You can deploy this bot in Heroku or in a VPS โ™ฅ๏ธ
Star ๐ŸŒŸ Fork ๐Ÿด and Deploy ๐Ÿ“ค

โš ๏ธ Note : We are using arch linux. But why ๐Ÿค”

Because archโ€™s p7zip package is the only maintained version of the original p7zipโ  package with some additional features


โ The lazy way

Deploy me ๐Ÿฅบ
(if you're in a fork, make sure to replace the template URL with your repoโ€™s one)


โ The easy way
git clone -b master https://github.com/EDM115/unzip-bot.git
cd unzip-bot
docker build -t unzip-bot .
  • Open Docker Desktop, go on the Images tab, click on the Run button
  • On Optional settings, fill the env variables

โ The legacy way
git clone -b master https://github.com/EDM115/unzip-bot.git
cd unzip-bot
pip3 install -r requirements.txt
  • Arch linux only โ†“ sudo pacman -S p7zip
โ Edit config.py with your own values
start.sh

DONE ๐Ÿฅณ enjoy the bot ! Be sure to follow me on Githubโ  and Star ๐ŸŒŸ this repo to show some support ๐Ÿฅบ

โ How to Build after changes ?

โ Trust GitHub Actions
  • Add new Actions secrets to the repo :
  • Go in Actions tab, 2 workflows are here for ya :
    • Build Docker Image : Check if it builds without errors
    • Publish Docker Image : Rebuild && publish
โ Do it manually
  • Go in the repo's folder
docker build -t unzip-bot .
  • If you wanna publish :
docker tag unzip-bot edm115/unzip-bot:latest

(replace edm115 with your docker hub username, unzip-bot with the repo's name and latest whith whatever you want)

docker login

login and don't mind the errors

docker push edm115/unzip-bot:latest

(same, replace accordingly)

โ Found a bug ๐Ÿž

If you found a bug in this bot please open an issueโ  or report it on Telegram : @EDM115โ 
Same if you have any feature request ๐Ÿ˜‰

Copyright (c) 2022 - 2023 EDM115

This Unarchiver Bot repository is licensed under MIT License (https://github.com/EDM115/unzip-bot/blob/master/LICENSE)
Enjoy copying and modifying, but always mention me

โ€ข Inspired by Itz-fork/Nexaโ€™s work, but with additional features and bug fixes. This is a maintained repo of the originalโ 

Tag summary

Content type

Image

Digest

sha256:92e7c5378โ€ฆ

Size

124 MB

Last updated

7 months ago

docker pull edm115/unzip-bot