A simple telegram bot to download, upload files or folders from Mega.nz
- ⚡ Download, Upload files/folders easily
- 🙅♂️ No login required1
- 🗃️ Support for Mega.nz user account
- 🤝 Support for both private and public content
- 🛡 Can be used as either private or public bot
- 🖇 Direct download link to mega.nz upload
- 🧐 See what files are in your links
Deploy your own Bot
Recomended,
Use official Docker image to run Mega.nz-Bot 🐳
- Install Docker on your server
- Create the .env file (see env sample and config vars)
- Pull the docker image
docker pull ghcr.io/itz-fork/meganzbot:latest
- Run it! (
.env
is path to .env file you created)docker run --env-file .env ghcr.io/itz-fork/meganzbot
Legacy Metods,
-
Using installer script
If you're using a linux distro with
apt
,apk
,pacman
ordnf
as the package manager, you can use the official installer script to setup Mega.nz-Bot.curl -sS -O https://raw.githubusercontent.com/Itz-fork/Mega.nz-Bot/main/installer.sh && chmod +x installer.sh && ./installer.sh
-
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, ffmpeg according to your system
- Create a
.env
file (see example) - Fill config vars with your own values (How to get config values),
- 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
Footnotes
-
This only applies to public contents and you're still limited by the daily download quota limit of the mega.nz platform ↩