Giter VIP home page Giter VIP logo

itz-fork / unzipper-bot Goto Github PK

View Code? Open in Web Editor NEW
115.0 2.0 195.0 211 KB

Simple Telegram Bot to extract various types of archives from a telegram file or a direct link

Home Page: https://github.com/Itz-fork/Unzipper-Bot

License: GNU General Public License v3.0

Dockerfile 0.31% Python 99.44% Shell 0.22% Procfile 0.03%
unzipper unzipper-bot telegram-bot pyrogram-bot unzip unzip-bot 7zip unarchive unrar bot

unzipper-bot's Introduction

》 Unzipper Bot 《

A Telegram Bot to Extract Various Types Of Archives


Table of content


Features ⚡

  • Extract various types of archives like rar, zip, tar, 7z, tar.xz etc.
  • Password support for extracting
  • Extract archives from direct / gdrive links
  • Support for multi-part 7z archives (archives ends with file extensions like .001, .002, etc.)
  • Custom thumbnail support
  • Muti-language support (More info)
  • Upload files larger than 2GB to gofile.io
  • Backup extracted files to gofile.io
  • Broadcast messages to users
  • Ban / Unban users from using your bot
  • Check stats of the bot (users, hardware usage, etc.)
  • Send logs in a private channel

And Some other features 🔥!

Also don't forget to check changelog 😉


Configs 📖

  • 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 - Follow these steps,
    • Make a private channel
    • Add your bot to the channel as an admin
    • Send a message and copy it's link
    • The link'll be something like https://t.me/c/12345/1. Simply copy the 12345 part from it and add -100 to the beginning of it. Now it'll be something like -10012345. That's your channel id!
  • GOFILE_TOKEN - Your gofile.io API token from your profile page

Deploy 👀

Deploying is easy 🤫! You can deploy this bot in Heroku or in a linux VPS ♥️! Star 🌟 Fork 🍴 and Deploy

With Heroku

Self-Hosting

Note ⚠️

It's recomended to use a arch linux based distro to deploy this bot as the original author of the p7zip package has not made an update since 2016, but the arch linux's version is packaged from an active fork.

git clone https://github.com/Itz-fork/Unzipper-Bot.git
cd Unzipper-Bot
pip3 install -r requirements.txt

# Arch linux
sudo pacman -Syyu
sudo pacman -S zstd p7zip

# Ubuntu
sudo add-apt-repository universe
sudo apt update
sudo apt install p7zip-full p7zip-rar zstd

Edit config.py with your own values

bash start.sh

DONE 🥳, Enjoy The Bot! Be sure to Follow Me on Github and Star 🌟 this repo to Show some support 😍!


Found a bug 🐞?

If you found a bug in this bot please open an issue or report it at the Support group.


Support 💙


License & Copyright 👮

Copyright (c) 2022 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 this code without permission or proper credits is strictly prohibited

unzipper-bot's People

Contributors

itz-fork avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

unzipper-bot's Issues

[BUG]

Unable to scale dynos at heroku

ERROR

Hi.
When i deploy this repo to heroku this message appear:

We couldn't deploy your app because the source code violates the Salesforce Acceptable Use and External-Facing Services Policy.

Add google drive link support

hi;
can you add google drive/td link support?
it would be really helpful if we send gdrive/tdrive link to bot and then it zip/unzip it and return the extracted/zipped folder link.

improvement

Hi.
Is possible when extract zip file completed, upload extracted files to telegram sort by name (x1, x2, x3)

Release v1.0

Why?

Currently the main branch (arch) isn't stable due to the code duplication, unnecessary recursive functions, poor error handling, bugs, etc. As a result it's hard to maintain this repo anymore.

To do

  • - Organize the code
  • - Improve performance (Bot might show slow response time due to multi-language support)
  • - Fix common bugs
  • - Multi-language support

LOGS_CHANNEL error 400

I have a little problem of… comprehension 😅 regarding to LOGS_CHANNEL

I tried to deploy, and then heroku logs says :
Telegram says: [400 CHANNEL_INVALID] - The channel parameter is invalid (caused by "channels.GetChannels")

So what value do we need to put as LOGS_CHANNEL ?
Channel id (like -100160010XXXX) ?
Channel name (like @randomchannel) ?

I'm lost 😭

Not working properly

Sir, please add command instead of callback. The bot gives error on multiple clicks and it doesn't even show download progress after sending the file.

ERROR: [Errno 17] File exists: '/app/NexaBots/

And after downloading all files by bot sending /done command says select the file but gives error: Sorry, It looks like your files have been removed from the server 😔!

I am using main branch (untouched) on Heroku.

[BUG] 'NoneType' object has no attribute 'title'

Describe the bug
This error raises when you tried to extract a muti-part archive.

To Reproduce
Extract a muti-part archive. This error will raise when you try to send 2nd part of the archive.

Expected behavior
Download and store the part on the server

Screenshots
None

Additional context
None

Giving Error while deploying on railway.

||| Unzipper Bot |||
Copyright (c) 2022 Itz-fork
--> Join @NexaBotsUpdates
--> Follow Itz-fork on Github
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "/app/unzipper/__init__.py", line 7, in <module>
from config import Config
File "/app/config.py", line 5, in <module>
class Config(object):
File "/app/config.py", line 6, in Config
APP_ID = int(os.environ.get("APP_ID"))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'

please guide me, what's wrong, i didn't edited any code.

Time limit

tell me how to remove time limit for sending files as i use the bot for personal
and a request please add a zip file feature as many zip bot stoped and there is not a repo for use in github

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.