A Simple Telegram Bot written in Python using Pyrogram Library to Do Somethings Related to Mega.nz Cloud Storage.
- All Mega.nz File Links supported
- No login required
- Auto Detect File Type Before Upload to Telegram
- Can be used as Private or Public Bot
- Mega User Account Supported
- Upload Files From Telegram to Mega.nz
- Import Files From Public Mega.nz Url
Deploy your own Bot
Mandatory Vars,
APP_ID
- Your APP_ID. Get it from my.telegram.orgAPI_HASH
- Your API_ID. Get it from my.telegram.orgAUTH_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'MEGA_EMAIL
- Fill this if you want to use your own Mega Account. This is your Mega account EmailMEGA_PASSWORD
- Fill this if you want to use your own Mega Account. This is your Mega account PasswordUSER_ACCOUNT
Set this to 'True' If you want to use your own Mega Account. Default to 'False'
- 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
- Fill Config Vars,
For PCs - Use Normal Text Editor to Fill Config Vars
For Vps - If you haven't installed nano yet, Read This - How to install Nano in your computer/Vps
Fill Config vars with your own values. If you don't know how to get them, Read This - How to Get Config Values
sudo nano config.py
- Run the Bot,
python3 main.py