Mantu120 / B0T-Mega-nz

Simple Telegram Bot to Download Files From Mega.nz

Home Page:https://github.com/Itz-fork/Mega.nz-Bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mega.nz-Bot

A simple telegram bot written in Python using Pyrogram framework to help you to manage Mega.nz cloud storage with telegram.

Features

  • ⚑ Download, Upload & Import files easily
  • πŸ“± Mega.nz user account support
  • πŸ™…β€β™‚οΈ No login required
  • πŸ–‡οΈ Almost all file / folder links are supported
  • πŸ›‘οΈ Can be used as either public or private bot
  • πŸ•΅οΈβ€β™‚οΈ 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 - To get this, follow these steps,
    • Make a private channel
    • Send a message and copy it's link
    • The link'll be something like https://t.me/c/12345/1. Simply copy the 12345 part from it and add -100 to the beginning of it. Now it'll be something like -10012345. That's your channel id!
  • 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

Check out sample config file if you aren't using heroku πŸ€—

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 megatools, ffmpeg according to your system
  • Fill config vars with your own values (How to get config Values),
    • If you have GUI system use a normal text editor like notepad, sublime text etc.
    • For CLI systems, install nano and edit the config file using sudo nano config.py command.
  • Run the Bot,
bash startup.sh

Support

Support Group

About

Simple Telegram Bot to Download Files From Mega.nz

https://github.com/Itz-fork/Mega.nz-Bot


Languages

Language:Python 85.2%Language:Shell 14.1%Language:Dockerfile 0.7%Language:Procfile 0.0%