Itz-fork / Mega.nz-Bot

Simple Telegram Bot to Download and Upload Files From Mega.nz
https://github.com/Itz-fork/Mega.nz-Bot
GNU General Public License v3.0
340 stars 517 forks source link
bot heroku mega mega-bot mega-downloader mega-nz mega-nz-bot megatools pyrogram telegram telegram-bot


Mega.nz-Bot - Cypher 🥷

A simple telegram bot to download, upload files or folders from Mega.nz

Features

Deploy

Deploy your own Bot ♥️! Star 🌟 Fork 🍴 and Deploy

Heroku

Deploy

Local

Recomended,

Use official Docker image to run Mega.nz-Bot 🐳

Legacy Metods,

1) Using installer script

If you're using a linux distro with `apt`, `apk`, `pacman` or `dnf` as the package manager, you can use the official installer script to setup [Mega.nz-Bot](https://github.com/Itz-fork/Mega.nz-Bot).

```bash
curl -sS -O https://raw.githubusercontent.com/Itz-fork/Mega.nz-Bot/main/installer.sh && chmod +x installer.sh && ./installer.sh
```

2) Using classic git clone

- Clone the Repo
```
git clone https://github.com/Itz-fork/Mega.nz-Bot
```
- Enter the directory
```
cd Mega.nz-Bot
```
- Create a new virtual environment
```
python -m venv .venv
source .venv/bin/activate
```
- Install Requirements
```
pip3 install -U -r requirements.txt
```
- Install [megatools](https://megatools.megous.com/), [ffmpeg](https://ffmpeg.org/download.html) according to your system
- Create a `.env` file (see [example](/.env.sample))
- Fill config vars with your own values ([How to get config values](#config-vars)),
- Run the Bot (using same shell session),
```
python3 -m megadl

# If you get erros such as ModuleNotFoundError, use below command
.venv/bin/python3 -m megadl
```

Config vars

Please refer to documentation

[^1]: This only applies to public contents and you're still limited by the daily download quota limit of the mega.nz platform

Support

Support Group