A simple telegram bot to download, upload files or folders from Mega.nz
Deploy your own Bot ♥️! Star 🌟 Fork 🍴 and Deploy
Recomended,
Use official Docker image to run Mega.nz-Bot 🐳
docker pull ghcr.io/itz-fork/meganzbot:latest
.env
is path to .env file you created)
docker run --env-file .env ghcr.io/itz-fork/meganzbot
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
```
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