A Telegram bot that helps you rename multiple files in your Mega.nz account while preserving their extensions.
- Interactive login to Mega.nz account via Telegram
- List all available files
- Rename multiple files at once
- Preserve file extensions
- Secure credential handling
- Simple conversation flow
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile from.env.exampleand add your Telegram Bot Token:- Get Telegram Bot Token from @BotFather
-
Start the bot:
python bot.py
-
In Telegram:
- Send
/startto begin - Send
/loginto login to your Mega.nz account - Enter your Mega.nz email and password when prompted
- Send
/renameto start renaming files - Send the new base name for your files
- The bot will rename all files while preserving their extensions
- Send
/start- Start the bot/login- Login to Mega.nz account/rename- Begin renaming files/cancel- Cancel the current operation
- Credentials are only stored temporarily in memory
- Messages containing sensitive information are deleted immediately
- No permanent storage of user credentials
- Session-based authentication
You can deploy this bot on Koyeb:
- Fork this repository
- Create a new Koyeb project
- Connect your GitHub repository
- Set the environment variable in Koyeb:
TELEGRAM_TOKEN
- Deploy!