Skip to content

Hello-Test-Repo-Org/Mega.nz-Bot

 
 

Repository files navigation

Mega.nz-Bot

A Simple Telegram Bot written in Python using Pyrogram Library to Do Somethings Related to Mega.nz Cloud Storage.

Features

  • All Mega.nz Files / Folder Links supported (For folder links use /megadl command)
  • No login required
  • Auto Detect File Type Before Upload to Telegram
  • Can be used as Private or Public Bot
  • Mega User Account Supported
  • Upload Files From Telegram / Direct Link to Mega.nz
  • Import Files From Public Mega.nz Url
  • Inline Mode [Still In Development Stage: BETA]

Deploy

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

Config Vars 📓,

Mandatory Vars,

  • APP_ID - Your APP_ID. Get it from my.telegram.org
  • API_HASH - Your API_ID. Get it from my.telegram.org
  • AUTH_USERS - Telegram IDs Of Auth Users, Only they can use this bot (If you didn't set this as public bot). Separate them by a space. (Ex: 123445 2648589)
  • BOT_TOKEN - Your Bot Token From @BotFather

Non Mandatory Vars,

  • IS_PUBLIC_BOT - Set this to 'True' if you want to set Download Function as Public. Default to 'False'
  • LOGS_CHANNEL - Make a private channel and forward a message from that channel to @ChannelidHEXbot and Get this. (Recomended to add this variable). If you're hosting your bot Heroku, after deploying the bot delete LOGS_CHANNEL var. Else you'll get some errors
  • MEGA_EMAIL - Fill this if you want to use your own Mega Account. This is your Mega account Email
  • MEGA_PASSWORD - Fill this if you want to use your own Mega Account. This is your Mega account Password

With Heroku

Deploy

Notice ⚠️: This (Main) repo doesn't contain the Dockerfile which is needed to deploy on Heroku. Please refer the Deployment guide in-order to deploy this bot Heroku.

With VPS/PC


Tip 💡: If you're using a linux distro with apt or pacman package manager, you can use the official installer script to setup Mega.nz-Bot. To do so run the following command,

curl -sS https://raw.githubusercontent.com/Itz-fork/Mega.nz-Bot/main/installer.sh | bash

To setup Mega.nz-Bot follow these steps,

  • Clone the Repo,
git clone https://github.com/Itz-fork/Mega.nz-Bot
  • Enter the directory,
cd Mega.nz-Bot
  • Install Requirements,
pip3 install -r requirements.txt
# Install the 'megatools' and 'ffmpeg'packages
sudo apt install megatools ffmpeg

Fill Config vars with your own values. If you don't know how to get them, Read This - How to Get Config Values

sudo nano config.py
  • Run the Bot,
bash startup.sh

Support

About

Simple Telegram Bot to Download and Upload Files From Mega.nz

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.9%
  • Shell 6.6%
  • Other 0.5%