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
this is a telegram bot repository, that can stream video on telegram group video chat.

VIDEO STREAM BOT telegram bot project for streaming video on telegram video chat, powered by tgcalls and pyrogram πŸ›  Commands: /vstream (reply to vide

levina 319 Aug 15, 2022
A Telegram Bot with(Forwarder Bot + User Bot + More Features )

A Telegram Bot with(Forwarder Bot + User Bot + More Features )

Kaif 3 Feb 16, 2022
A python api to get info on covid-19

A python api to get info on covid-19

roof 2 Sep 18, 2022
Ig-Crackv2 - Crack Instagram Version 2.9

β˜…β˜… Information β˜…β˜… β˜…β˜…Menu Special Crack Melalui Pengikut Crack Melalui Mengikuti

Risky [ Zero Tow ] 11 Aug 30, 2022
a discord libary that use to make discord bot with low efficiency and bad performance because I don't know how to manage the project

Aircord πŸ›©οΈ a discord libary that use to make discord bot with low efficiency and bad performance because I don't know how to manage the project Examp

Aircord 2 Oct 24, 2021
Query Amalgamator over StackOverflow and YouTube

QASY Query Amalgamator over StackOverflow and YouTube Decription A software you can use to save your valuable time of googling the errors you encounte

1 Nov 07, 2021
Fetch fund data from avanza.se using Python and some web scraping with bs4

Py(A)vanza Fetch fund data from avanza.se using Python and some web scraping with bs4. The default way is to display the data in the terminal, apply -

dunderrrrrr 1 Jan 27, 2022
PlaylistAudioBot - Telegram playlist download bot with ytdl

Telegram PlaylistAudioBot PlaylistAudioBot: πŸ‡¬πŸ‡§ Telegram playlist download bot

HΓΌzΓΌnlΓΌ Artemis [HuzunluArtemis] 14 Jul 22, 2022
⚑ Κ‘Ι  αƒͺΖ‘Ι¬ Is One Of The Fastest & Smoothest Bot On Telegram Based on Telethon ⚑

γ€ŽΚ‘Ι  αƒͺƑɬ』 ⚑ Κ‘Ι  αƒͺΖ‘Ι¬ Is One Of The Fastest & Smoothest Bot On Telegram Based on Telethon ⚑ Status Of Bot Telegram πŸͺ Dєρℓογ το нєяοκυ Variables APP_ID =

Κ‘Ι‘Κ‘Ι“Ι¦Ι‘Ιͺ 0 Feb 12, 2022
A multipurpose, semi-modular Discord bot written in Python with the new discord.py module.

Discord.py Reaction Bot MIRAI KURIYAMA A multipurpose, semi-modular Discord bot written in Python with the new discord.py module. Installing dependenc

1 Dec 02, 2021
Automatically Edits Videos and Uploads to Tiktok with 1 line of code.

TiktokAutoUploader - Open to code contributions Automatically Edits Videos and Uploads to Tiktok with 1 line of code. Setup pip install -r requirement

Michael Peres 199 Dec 27, 2022
Automated AWS account hardening with AWS Control Tower and AWS Step Functions

Automate activities in Control Tower provisioned AWS accounts Table of contents Introduction Architecture Prerequisites Tools and services Usage Clean

AWS Samples 20 Dec 07, 2022
Subtitle Translater

Subtitle Translater

OshadhaVimukthi 2 Nov 29, 2021
TheTimeMachine - Weaponizing WaybackUrls for Recon, BugBounties , OSINT, Sensitive Endpoints and what not

The Time Machine - Weaponizing WaybackUrls for Recon, BugBounties , OSINT, Sensi

Anmol K Sachan 112 Dec 29, 2022
Find people to play tennis with.

40Love 40Love is a full-stack web application that helps tennis players find hits at public tennis courts. Players can select public courts on the map

Tanner Schmutte 27 Jun 08, 2022
An open source, multipurpose, configurable discord bot that does it all

Spacebot - Discord Bot Music, Moderation, Fun, Utilities, Games and Fully Configurable. Overview β€’ Contributing β€’ Self hosting β€’ Documentation (not re

Dhravya Shah 41 Dec 10, 2022
This code will guide you on how you can make your own Twitter Bot.

This code will guide you on how you can make your own Twitter Bot. This bot retweets, and likes to tweet with a particular word, here Python3.

Kunal Diwan 1 Oct 14, 2022
Console XMPP client in python

poezio Homepage: https://poez.io Forge Page: https://lab.louiz.org/poezio/poezio Poezio is a console Jabber/XMPP client. The initial goal was to provi

48 Dec 19, 2022
Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

Aaron DeVera 2 May 11, 2022
Simple Telegram Bot for generating BalckPearl BBCode Templates

blackpearl-bbcode-bot Simple Telegram Bot for generating BlackPearl BBCode Templates Written in Pyrogram Features - πŸŽ‰ IMDB Info fetching from files -

D. Luffy 5 Oct 19, 2022