Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Mega.nz File Renamer Bot

A Telegram bot that helps you rename multiple files in your Mega.nz account while preserving their extensions.

Features

  • 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

Setup

  1. Clone this repository
  2. Install dependencies:
    pip install -r requirements.txt
  3. Create a .env file from .env.example and add your Telegram Bot Token:

Usage

  1. Start the bot:

    python bot.py
  2. In Telegram:

    • Send /start to begin
    • Send /login to login to your Mega.nz account
    • Enter your Mega.nz email and password when prompted
    • Send /rename to start renaming files
    • Send the new base name for your files
    • The bot will rename all files while preserving their extensions

Commands

  • /start - Start the bot
  • /login - Login to Mega.nz account
  • /rename - Begin renaming files
  • /cancel - Cancel the current operation

Security Features

  • Credentials are only stored temporarily in memory
  • Messages containing sensitive information are deleted immediately
  • No permanent storage of user credentials
  • Session-based authentication

Deployment

You can deploy this bot on Koyeb:

  1. Fork this repository
  2. Create a new Koyeb project
  3. Connect your GitHub repository
  4. Set the environment variable in Koyeb:
    • TELEGRAM_TOKEN
  5. Deploy!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages