Migrating to v2

Migrating from the predecessor

Table Of Content

Why v2?

After taking a break for the past year. Due to personal issues such as exams, I haven't been able to keep up with bug fixes and updates as quickly as I would have liked. Now that I have some more free time, I'm diving back in and taking a fresh look at the codebase. I'm impressed with what's been accomplished so far, but I also see some areas where we can make improvements. Instead of simply patching the existing code, I've decided to rewrite everything from the ground up to make the bot more maintainable and efficient in the long run.

Changes in v2

  • Organized codebase

  • Improved telegram file uploader

  • Use .env file or environment variables for configuration

  • Support for network speed limiting, proxies and parallel connections using mega config file

  • Helper libraries and tools to easily extend functionality with plugins

  • Dropped support for mega.pyarrow-up-right and moved everything to megatools

and more ❤️

Migrating

Heroku

  • Update your Mega-Deployerarrow-up-right with "Sync fork" button at your github fork

  • Connect your fork if not already

  • Select main branch and deploy

  • It should work out of the box 🎉!

Local


Tip 💡:

If you're hosting your bot on a linux system with apt, pacman or dnf as the package manager you can use official installer by running the following command,


  • Backup your .env file

  • Remove all the other content related to v1

  • Navigate the folder that you want to save code related to Mega.nz-Bot

  • Create the config file (see guide)

  • Run below commands,

Your bot should soon start working 🥳

Last updated