A telegram bot to download mega.nz links. (made with pyrogram).

Overview

Mega Link Downloader Bot

This is a telegram bot to download mega.nz links and return them as files/videos - Made by a 100% noob!

(When I mean noob I really mean noob!)

You can find a live version of this bot in telegram as @mega_downloader_robot

Created with ❤️ by @xmysteriousx as a part of @mysterious_uploader_robot

Please be kind to star and fork this repo! 😇


Features 💫

  • Mega accounts are not needed!
  • Parallel download are supported! (This means many users can use the bot at the same time. 😇 )
  • Multitasking is also supported ! (This means You (owner) and telegram users who you set as auth users will be able to download multiple links at the same time! 😋 )
  • No quota limits will be occurred!
  • Custom thumbnail support!
  • Custom caption support!
  • Attractive progress bar when downloading and uploading files! 🙈
  • Ban unwanted users!
  • See your bot's user count!
  • Broadcast any message to every user of your bot!
  • Ability to download any file under 5GB! (If you provide a pro/business account when deploying there will be no file size limits! 😍 )

Note :- Due to telegram API limits I can't upload files which are bigger than 2GB so such files will be spliited and uploaded to you!


Deploying Methods

Deploying to Heroku
  • Choose Europe as server location when deploying. (Beacuse downloadings will be a little fast!).
  • Examples of needed bot variables are mentioned below in this readme!

Note :- It's best if you deploy on a vps because with heroku downloadings can be slow! 😕


Deploy

Deploying on a VPS

Make a vps (Recommended - Ubuntu 20.04 (LTS) x64 vps from a location/region near New Zealand) and log in to it.

  • Then execute the below commands. 👇
sudo apt update
sudo apt upgrade
apt-get update
apt-get install tmux
tmux

Now there are two methods to go further!

  • Method 1

    • Fork my repo. In the repo go inside to the sample_config.py and copy all the code in it. In your forked repo, create a file named config.py and paste the whole code in it.
    • Then edit the values in it with your values! (Inside your config.py file you will see the examples of how to edit the fields.)
    • Then execute the below commands. 👇
git clone You_forked_repo_url
apt install python3-pip
apt install ffmpeg
cd mega-link-downloader-bot
pip3 install -r requirements.txt
python3 bot.py

Now If you did everything correctly bot will be running successfully! 🥳

  • Method 2

    • Execute the below commands. 👇
git clone https://github.com/XMYSTERlOUSX/mega-link-downloader-bot
apt install python3-pip
apt install ffmpeg
cd mega-link-downloader-bot
pip3 install -r requirements.txt
cp sample_config.py config.py
nano config.py
  • Now you will be inside the config.py file.
  • Then edit the values in it with your values! (Inside your config.py file you will see the examples of how to edit the fields.)
  • (For pasting letters, copy any value you want and take the curser to the place you want by arrow keys and right click the mouse! 😅 )
  • After editing all with appropriate values as mentioned in the config file press Ctrl + X from your keyboard.
  • Then press y in your keyboard.
  • Then execute the below command. 👇
python3 bot.py

Now If you did everything correctly, the bot will be running successfully! 🥳


Variables

  • API_ID - Get this value from https://my.telegram.org/apps
  • API_HASH - Get This Value from https://my.telegram.org/apps
  • TG_BOT_TOKEN - Make a bot from https://t.me/BotFather and enter the token here.
  • Mega_email - This is not necessary! Enter your mega email only if you have a mega.nz account with pro/business features.
  • Mega_password - This is not necessary! Enter your mega password only if you have a mega.nz account with pro/business features.
  • Bot_username - Your bot's telegram username. (must enter with '@' in the front of the username)
  • AUTH_USERS - Id's of the telegram users, who you want to allow for multitasking - downloading multiple links at once!
  • OWNER_ID - Your(owner's) telegram id
  • REDIS_URI - Get This Value from https://app.redislabs.com/#/login
  • REDIS_PASS - Get This Value from https://app.redislabs.com/#/login

Bot Commands

Normal User Commands
  • /start - To check if the bot is alive!
  • /help - To get the detailed help guide of using the bot!
  • /deletethumbnail - To delete your saved custom thumbnail!
Admin Commands
  • /delmyfolder - To delete the download folder of the owner and the auth users.
    (Since owner and auth users support multitasking their downloads folder will not get deleted automatically!. So If you want to clean up the server storage hit that command and delete your download folder after all of your current downloads got uploaded. If you are on heroku free dynos this doesn't really matter but if you are on a vps please remember to do it once in a while!)
    Note :- Do not send this command while links are being downloaded and uploaded!

  • /black - To ban unwanted users from the bot!
    (Syntax of sending the commnad to the bot is:- /black userid)

  • /unblack - To unban banned users from the bot!
    (Syntax of sending the commnad to the bot is:- /unblack userid)

  • /lisblack - To get the telegram id list of banned user's from the bot!

  • /broadcast - To broadcast a message to all the users of the bot!
    (Syntax of sending the commnad to the bot is:- /broadcast as a reply to the message that you want to broadcast!)

  • /stats - To get the total number of users who has used your bot!


Reason for making this open source :-

For the help of any guy like me in this world who is wondering how to make a bot for downloading mega links, or for whoever that is finding a code to download mega links; thought to make this public. 😇 ❤️


Credits, and Thanks to

Project written and created by - XMYSTERIOUSX


LICENSE

  • GPLv3
Fast and small Discord-Toolset.

Mooncord 🌙 Discord server: https://discord.gg/frnpk2rg Fast and small Discord-Toolset. Enjoy? Star this repo ⭐ (Main file in Mooncord/Moon-1.0.1/vers

7ua 9 Dec 11, 2021
PlexAutoSkip - Automatically skip content in Plex

PlexAutoSkip Automatically skip tagged content in Plex A background python scrip

Michael Higgins 97 Dec 21, 2022
Drover is a command-line utility for deploying Python packages to Lambda functions.

drover drover: a command-line utility for deploying Python packages to Lambda functions. Background This utility aims to provide a simple, repeatable,

Jeffrey Wilges 4 May 19, 2021
A repository of publicly verifiable token Sale contracts

Token-Sale-Plutus-Contract A repository of publicly verifiable token sale and royalty contracts. This will be the storage solution since it is easily

Logical Mechanism 29 Aug 18, 2022
A discord http interactions framework built on top of Sanic

snowfin An async discord http interactions framework built on top of Sanic Installing for now just install the package through pip via github # Unix b

kaj 13 Dec 15, 2022
This is a small package to interact with the OpenLigaDB API.

OpenLigaDB This is a small package to interact with the OpenLigaDB API. Installation Run the following to install: pip install openligadb Usage from o

1 Dec 31, 2021
Some examples regarding how to use the Twitter APIs for academic research

Twitter Developer Platform: Using Twitter APIs for Academic Research All the scripts require a config.ini file in which the keys are put. There is a t

Federico Bianchi 6 Feb 13, 2022
Windows版本微信客户端(非网页版)自动化,可实现简单的发送、接收微信消息

wxauto Windows版本微信客户端自动化,可实现简单的发送、接收微信消息

357 Dec 29, 2022
DEPRECATED - Official Python Client for the Discogs API

⚠️ DEPRECATED This repository is no longer maintained. You can still use a REST client like Requests or other third-party Python library to access the

Discogs 483 Dec 31, 2022
Telegram Bot For Screenshot Generation.

Screenshotit_bot Telegram Bot For Screenshot Generation. Description An attempt to implement the screenshot generation of telegram files without downl

1 Nov 06, 2021
Info & tools for reverse engineering the M6 smart fitness band

m6-reveng This repo contains information and tools for reverse engineering the $7 M6 smart fitness band. Hardware The SoC (system-on-a-chip) is a Teli

41 Dec 26, 2022
A Telegram Bot to manage your music channel with some cool features.

Music Channel Manager V2 A Telegram Bot to manage your music channel with some cool features like appending your predefined username to the musics tag

11 Oct 21, 2022
Quickly edit your slack posts.

Lightning Edit Quickly edit your Slack posts. Heavily inspired by @KhushrajRathod's LightningDelete. Usage: Note: Before anything, be sure to head ove

Cole Wilson 14 Nov 19, 2021
Análise de dados abertos do programa Taxigov.

Análise de dados do Taxigov Este repositório contém os cadernos Jupyter usados no projeto de análise de dados do Taxigov. Conjunto de dados O conjunto

Augusto Herrmann 1 Jan 10, 2022
A simple Telegram bot, written in Python, that you can use to shill (i.e. send messages) your token, or whatever, to channels.

Telegram Shill Bot Ever wanted a Shill Bot but wankers keep scamming for one OR wanted to charge you an arm and a leg? This is a simple bot written in

53 Nov 25, 2022
Userbot Telegram + Music Voice Chats. Dibuat Untuk Bersenang - Senang , Dan Mempermudah Kegiatan. Created By Rio.

RIO - USERBOT Disclaimer Saya tidak bertanggung jawab atas penyalahgunaan bot ini. Bot ini dimaksudkan untuk bersenang-senang sekaligus membantu Anda

RioProjectX 1 Nov 10, 2021
Python3 library that can retrieve Chrome-based browser's saved login info.

Passax EDUCATIONAL PURPOSES ONLY Python3 library that can retrieve Chrome-based browser's saved login info. Requirements secretstorage~=3.3.1 pywin32=

Auax 1 Jan 25, 2022
A python crypto trading bot on Binance using RSI in 25 Lines 🚀

RSI Crypto Trading Bot - Binance A Crypto Trading Bot on Binance trading BTCUSDT and ETHUSDT using RSI in 25 Lines of Code Getting Started Note Python

Blankly Finance 10 Dec 26, 2022
An API wrapper for Discord written in Python.

HCord A fork of discord.py project. HCord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python. Key Featu

HCord 0 Jul 30, 2022
A Pluggable And Powerful Telegram Manager Bot

FRIDAY-USERBOT 🇮🇳 A Powerful, Smart And Simple Userbot In Pyrogram. Support 🚑 Inspiration & Credits Userge-X Userge Pokurt Pyrogram Code Owners Chs

DevsExpo 371 Mar 26, 2022