Skip to content

A powerful and dynamic Telegram bot designed to automatically rename files up to 2GB/4GB, with a fully interactive, button-based UI that can be configured dynamically by the owner.

License

Notifications You must be signed in to change notification settings

donsubhranil-bit/Auto-Rename

 
 

Repository files navigation

Bot Banner

Auto Rename Bot

A powerful and dynamic Telegram bot designed to automatically rename files up to 2GB, with a fully interactive, button-based UI that can be configured dynamically by the owner.

Python Version Pyrogram Version License


🚀 Core Features

  • ✍️ Advanced Auto-Rename: Automatically rename files based on a custom format, with support for season, episode, quality, and audio extraction.
  • 🖼️ Customization: Set your own custom thumbnails and captions to give your files a personal touch.
  • 🎞️ Metadata Control: View and manage metadata for your video files, including title, author, and more.
  • 🗂️ Sequence Mode: Send multiple files and have them renamed and sent back in a perfect, ordered sequence.
  • 🔐 Force Subscribe: Ensure users join designated channels before they can use the bot.
  • ⚙️ Dynamic Configuration: The bot owner can manage all important settings directly from the bot's UI, without needing to restart.
  • 🏆 User Leaderboard: A built-in leaderboard tracks user activity and showcases the top file renamers.
  • 🔒 Secure: All sensitive information is loaded from environment variables, not hardcoded.

🤖 Bot Commands (Click to Expand)

  • /start - sᴛᴀʀᴛ ᴛʜᴇ ʙᴏᴛ
  • /autorename - ᴛᴏ sᴇᴛ ᴀ ᴀᴜᴛᴏ ʀᴇɴᴀᴍᴇ ғᴏʀᴍᴀᴛ
  • /showformat - Tᴏ sᴇᴇ ʏᴏᴜʀ ғᴏʀᴍᴀᴛ
  • /tutorial - sᴇᴇ ᴜsᴀɢᴇ ɢᴜɪᴅᴇ
  • /leaderboard - Tᴏ ᴠɪᴇᴡ ʟᴇᴀᴅᴇʀʙᴏᴀʀᴅ
  • /viewthumb - ᴠɪᴇᴡ ᴛʜᴜᴍʙɴᴀɪʟ
  • /delthumb - ᴅᴇʟᴇᴛᴇ ᴛʜᴜᴍʙɴᴀɪʟ
  • /set_caption - sᴇᴛ ʏᴏᴜʀ ᴏᴡɴ ᴄᴀᴘᴛɪᴏɴ
  • /see_caption - ᴠɪᴇᴡ ʏᴏᴜʀ ᴄᴀᴘᴛɪᴏɴ
  • /del_caption - ᴅᴇʟᴇᴛᴇ ʏᴏᴜʀ ᴄᴀᴘᴛɪᴏɴ
  • /setmedia - sᴇᴛ ᴏᴜᴛᴘᴜᴛ ғɪʟᴇ ᴛʏᴘᴇ
  • /start_sequence - sᴛᴀʀᴛ ғɪʟᴇ sᴇǫᴜᴇɴᴄɪɴɢ
  • /end_sequence - ᴇɴᴅ ғɪʟᴇ sᴇǫᴜᴇɴᴄɪɴɢ
  • /metadata - ᴠɪᴇᴡ ʏᴏᴜʀ ᴍᴇᴛᴀᴅᴀᴛᴀ
  • /verify - Tᴏ ᴠᴇʀɪғʏ
  • /add_premium - Tᴏ ᴀᴅᴅ ᴘʀᴇᴍɪᴜᴍ ᴜsᴇʀs (ᴀᴅᴍɪɴ)
  • /remove_premium - Tᴏ Rᴇᴍᴏᴠᴇ ᴘʀᴇᴍɪᴜᴍ ᴜsᴇʀs (ᴀᴅᴍɪɴ)
  • /premium_users - Tᴏ ᴠɪᴇᴡ ᴀʟʟ ᴘʀᴇᴍɪᴜᴍ ᴜsᴇʀs (ᴀᴅᴍɪɴ)
  • /premium_info - Tᴏ ᴠɪᴇᴡ ᴘᴇʀsᴏɴᴀʟʟʏ ᴏɴᴇ ᴘʀᴇᴍɪᴜᴍ ᴜsᴇʀ (ᴀᴅᴍɪɴ)
  • /verify_settings - Tᴏ ᴄʜᴀɴɢᴇ ᴠᴇʀɪғʏ sᴇᴛᴛɪɴɢs (ᴀᴅᴍɪɴ)
  • /fsub_mode - Tᴏ sᴇᴇ ᴛʜᴇ ғᴏʀᴄᴇ sᴜʙ ᴍᴏᴅᴇ (ᴀᴅᴍɪɴ)
  • /addchnl - ᴀᴅᴅ ᴀ ᴄʜᴀɴɴᴇʟ ғᴏʀ ғᴏʀᴄᴇ sᴜʙsᴄʀɪᴘᴛɪᴏɴ (ᴀᴅᴍɪɴ)
  • /delchnl - ʀᴇᴍᴏᴠᴇ ᴀ ғᴏʀᴄᴇ sᴜʙsᴄʀɪʙᴇ ᴄʜᴀɴɴᴇʟ (ᴀᴅᴍɪɴ)
  • /listchnl - ᴠɪᴇᴡ ᴀʟʟ ᴀᴅᴅᴇᴅ ғᴏʀᴄᴇ sᴜʙsᴄʀɪʙᴇ ᴄʜᴀɴɴᴇʟs (ᴀᴅᴍɪɴ)
  • /add_admin - ᴀᴅᴅ ᴀ ɴᴇᴡ ᴀᴅᴍɪɴ (ᴀᴅᴍɪɴ)
  • /deladmin - ʀᴇᴍᴏᴠᴇ ᴀɴ ᴀᴅᴍɪɴ (ᴀᴅᴍɪɴ)
  • /admins - ʟɪsᴛ ᴀʟʟ ᴄᴜʀʀᴇɴᴛ ᴀᴅᴍɪɴs (ᴀᴅᴍɪɴ)
  • /restart - ʀᴇsᴛᴀʀᴛ ᴛʜᴇ ʙᴏᴛ (ᴀᴅᴍɪɴ)
  • /broadcast - ʙʀᴏᴀᴅᴄᴀsᴛ ᴀ ᴍᴇssᴀɢᴇ (ᴀᴅᴍɪɴ)
  • /status - Tᴏ ᴄʜᴇᴄᴋ ʙᴏᴛ sᴛᴀᴛᴜs (ᴀᴅᴍɪɴ)
  • /ban - ʙᴀɴ ᴀ ᴜsᴇʀ (ᴀᴅᴍɪɴ)
  • /unban - ᴜɴʙᴀɴ ᴀ ᴜsᴇʀ (ᴀᴅᴍɪɴ)
  • /banned - sʜᴏᴡ ʙᴀɴɴᴇᴅ ᴜsᴇʀs (ᴀᴅᴍɪɴ)

🛠️ How to Deploy

You can easily deploy this bot yourself by following the steps below.

1. Prerequisites

2. Deployment Steps

  1. Clone the Repository:

    git clone https://github.com/abhinai2244/Auto-Rename.git
    cd Auto-Rename
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Set Up Environment Variables: Create a .env file or set the following environment variables in your deployment environment:

Variable Description Required
API_ID Your Telegram App ID. Yes
API_HASH Your Telegram App Hash. Yes
BOT_TOKEN Your Telegram bot token from @BotFather. Yes
DB_URL Your MongoDB connection URL. Yes
OWNER_ID Your numerical Telegram User ID. Yes
LOG_CHANNEL The ID of the channel for bot logs. Yes
  1. Run the Bot:
    python3 bot.py

🙏 Credits & Acknowledgements

This project was made possible by the inspiration and foundational work of others in the community.

Contributors

About

A powerful and dynamic Telegram bot designed to automatically rename files up to 2GB/4GB, with a fully interactive, button-based UI that can be configured dynamically by the owner.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Other 0.1%