• Stars
    star
    339
  • Rank 124,632 (Top 3 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created over 3 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

Unmaintained

Warning

This branch is unmaintained! New version of the project can be found at: nightly branch.

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

More Repositories

1

Unzipper-Bot

Simple Telegram Bot to extract various types of archives from a telegram file or a direct link
Python
115
star
2

Callsmusic-Plus

Powerful Telegram Voice Chat Player Bot Based On CallsMusic With More Advanced Features!
Python
56
star
3

Nexa-Userbot

Nexa Userbot - Dev Version
Python
41
star
4

Yui

Simple Telegram AI Chat bot made using OpenAI and Luna API
Python
39
star
5

X-Bin-Patch

Method to deploy Mega.nz-Bot to Heroku
Dockerfile
29
star
6

Gofile2

An API Wrapper for Gofile API
Python
26
star
7

Fastapi-Swagger-UI-Dark

Dark theme for Swagger UI (Fastapi)
CSS
24
star
8

py-trans

Text translation library with wrappers for Google Translate, My memory and more...
Python
17
star
9

Torrent-Aio-Bot-Duplicate

Unofficial Clone of Torrent Aio Bot
JavaScript
14
star
10

Redirect-to-Heroku

Get Deploy to Heroku Link with your repo!
CSS
13
star
11

Nexa-API

Simple, Free and Easy to use Public api
Python
13
star
12

Fake-agent

Generate fake browser user agents without a hassle!
Python
13
star
13

pyro-mega.py

Modified Version of mega.py package for Pyrogram Bots
Python
13
star
14

Cool-Git-Badges

Cool , Most Useful Badges For Github!
12
star
15

MangaMTL-Userstyle

Stylus userstyle that improves MangaMTL design
CSS
10
star
16

Bypasser-CLI

CLI for bypass.vip api
Dart
9
star
17

Gitfetch

Gitfetch is a simple tool to get github user details
Python
7
star
18

py-extract

A simple, light-weight python library to handle some extraction tasks using less lines of code.
Python
7
star
19

Dart-Tg-Bot

Test telegram bot written in dart using teledart package
Dart
7
star
20

PyYtX

PyYtX - A Simple Python Library to Get Details About a Youtube Video.
Python
5
star
21

cw-gram.js

Cloudflare workers script that allows you to send messages to a specific telegram account
JavaScript
5
star
22

PyrogramExampleBot

Python
4
star
23

WhatErrorBot

Search for telegram api errors and get information about them without leaving telegram
TypeScript
4
star
24

Portfolio

@Itz-fork's simple portfolio
Svelte
4
star
25

BetterPyroDocs

Simple & Easy-to-use search engine to search for pyrogram api methods and raw functions
TypeScript
2
star
26

File-Store-Bot-Y

Python
2
star
27

Zees-5-down-bot

Python
2
star
28

Rename-Bot-Fork

Python
2
star
29

Pyro-Session-Bot

Python
2
star
30

My-Python-Libs

List of Python Libraries made by me
2
star
31

Itz-fork

About Me
2
star
32

vrawler

Helper functions for web scraping in V (vlang)
V
2
star
33

humans-formatter

Python module to format bytes and time into something that humans can understand
C
2
star
34

beta.snowfy-afk

CSS
1
star
35

torrentolol

a simple web bot for torrenting
JavaScript
1
star
36

no-bug-is-damn

Python
1
star
37

TG-Music

Python
1
star
38

winnie

Python
1
star
39

Who-Am-I

1
star
40

lmao_f

CSS
1
star
41

itz-fork.github.io

@Itz-fork 's Portfolio
HTML
1
star
42

Rm-cache

Simple Shell Script to remove goddamn __pycache__ folders from current directory
Shell
1
star
43

Gen-pdf.sh

Simple bash script to generate pdf file(s) from images inside a folder in linux
Shell
1
star
44

Kivi.py

JSON based python key-value database for rapid prototyping
Python
1
star
45

Vrappy

Summarize videos using AI
TypeScript
1
star