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.
- ✍️ 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.
/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 (ᴀᴅᴍɪɴ)
You can easily deploy this bot yourself by following the steps below.
- Telegram Bot Token: Get one from @BotFather.
- Telegram API ID & Hash: Get them from my.telegram.org.
- MongoDB Database URL: Get a free one from MongoDB Atlas.
-
Clone the Repository:
git clone https://github.com/abhinai2244/Auto-Rename.git cd Auto-Rename -
Install Dependencies:
pip install -r requirements.txt
-
Set Up Environment Variables: Create a
.envfile 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 |
- Run the Bot:
python3 bot.py
This project was made possible by the inspiration and foundational work of others in the community.
- Base Repository: A special thanks to Jishu Developer for their original work.
- Inspiration & Support: REx BOTs