Code Monkey home page Code Monkey logo

mymega's Introduction

Mega.nz-Bot

A simple telegram bot written in Python using Pyrogram framework which helps you to download, upload and import 1 files / folders from 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 2
  • ๐Ÿ›ก๏ธ 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 config.sample file if you aren't using heroku ๐Ÿค—

With Heroku

Notice โš ๏ธ: Please refer the Deployment guide inorder to deploy this bot Heroku. THIS REPO ISN'T FUCKING COMPATIBLE WITH HEROKU!

Deploy

With VPS/PC


Tip ๐Ÿ’ก: If you're using a linux distro with apt, pacman or dnf 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 -U -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, use nano and edit the config file using nano config.py command.
  • Run the Bot,
bash startup.sh

Support

Support Group

Footnotes

  1. Only download and upload functions support folder links. Currently import function supports only for files โ†ฉ

  2. Public content only โ†ฉ

mymega's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.