Mesh Rename Bot is a powerful Telegram bot designed for auto-renaming files using custom filters. With some advanced features like permanent thumbnails, multiple upload modes, queue management, and more. Also, supports 14 different languages.
This bot is aimed to be the best rename bot around! ๐โจ
- The bot is still in beta. Your feedback is valuable!
- Report any bugs, issues, or feature requests by filing an issue.
- The bot will guide you through setting up filters easily! ๐
โ
Auto Rename files based on custom filters
โ
Permanent Thumbnail Support
โ
3 Different Upload Modes (Same Format, Forced Document, Streamable Media)
โ
2 Different Rename Modes (With and Without Command)
โ
Queue System to maintain consistent renaming speed โก
โ
PostgreSQL Support (Mongo Planned)
โ
Track User Activity ๐
โ
Force Join (Require users to join a specific channel before use)
โ
Multi-language Support ๐
โ
Admin Controls to manage bot users
โ
14 Different languages supported (en๐ฌ๐ง, es๐ช๐ธ, ar๐ธ๐ฆ, ta,hi๐ฎ๐ณ, ko๐ฐ๐ท, zh๐จ๐ณ, ru๐ท๐บ, fr๐ซ๐ท, pt๐ง๐ท, sw๐ฐ๐ช ๐น๐ฟ, id๐ฎ๐ฉ, de๐ฉ๐ช, fa๐ฎ๐ท)
Check on Telegram ๐By Yash
Beta Bot V2 ๐By yuilariy(Maybe stable ๐ช
)
mongodb is extremely slow, not yet fixed
Deploy your own instance of the bot on Heroku with one click!
Serverless PostgreSQL with a generous free tier๐
๐ Neon tech
๐ Aiven
For self-hosted deployment on a VPS, follow these steps:
sudo apt update && sudo apt install ffmpeg python3-pip
git clone https://github.com/yuilariy/Mesh-RenameBot.git
cd Mesh-RenameBot
- Create Virtual Environment (recommended)
python3 -m venv mesh
source mesh/bin/activate
pip3 install -r requirements.txt
python3 -m MeshRenameBot
-
To run the bot in the background:
screen -S meshr
python3 -m MeshRenameBot
- Detach:
Ctrl + A
, thenCtrl + D
- Detach:
-
To stop:
screen -r meshr
- CTRL+C
- then
screen -S meshr -X quit
Filters can be managed using the /filters
command.
โ Adds specific text to the beginning or end of the file name.
๐ซ Removes specific text from the file name if present.
๐ Replaces a specific text with a new text.
Modify the config.py
file inside MeshRenameBot
to update settings & commands.
Variable Name | Description |
---|---|
DB_URI |
Database URL (PostgreSQL) |
API_HASH |
Telegram API HASH |
API_ID |
Telegram API ID |
BOT_TOKEN |
Bot Token (from @BotFather) |
COMPLETED_STR |
Completed Symbol Marker |
REMAINING_STR |
Remaining Symbol Marker |
MAX_QUEUE_SIZE |
Maximum concurrent rename tasks (default: 5) |
SLEEP_SECS |
Sleep time before editing messages (default: 10 sec) |
IS_PRIVATE |
Set bot to private mode |
AUTH_USERS |
List of allowed users (works only when IS_PRIVATE is enabled) |
OWNER_ID |
Owner's Telegram User ID |
FORCEJOIN |
Public group/channel username or invite link (leave blank to disable) |
FORCEJOIN_ID |
Chat ID for FORCEJOIN |
TRACE_CHANNEL |
Tracking Channel ID (set 0 to disable tracking) |
LOG_CHANNEL |
Logs Channel ID (Bot processes tracking) |
SAVE_FILE_TO_TRACE_CHANNEL |
Save user file to tracking channel |
DEFAULT_LOCALE |
Default Language of Bot (values can be en, es, ar, hi, ko, zh, ru, fr, pt, sw, ta, de, id, fa) |
Use these commands to interact with the bot:
Command | Description |
---|---|
/start |
โ Check if the bot is running |
/rename |
โ๏ธ Rename a file (/rename filename.extension ) |
/filters |
โ๏ธ Manage rename filters |
/setthumb |
๐ท Set a permanent thumbnail (Reply to an image) |
/getthumb |
๐ธ Retrieve the current thumbnail |
/clrthumb |
โ Clear the set thumbnail |
/mode |
๐ Change upload and/or rename mode (Same Format, Document, General Media) |
/queue |
๐ View rename queue status |
/setcaption |
๐ Set a caption for the renamed files |
/setlanguage |
๐ Change the bot's language. |
/ping |
๐ Ping the Bot |
/status |
๐ซง get bot status (uptime, CPU usage |
/info |
๐ See bot info (maintainer, language, platform |
/stats |
๐๏ธ Get bot stats (Bot Owner Only) (total users, number of files renamed). |
/profile |
๐คฉ View Your Usage Stats (Total files renamed, files uploaded, downloaded). |
/leaderboard |
๐ (Owner Only) View Your Top users leaderboard(Position ๐๏ธ badges Total files renamed, files uploaded). |
/broadcast |
โ๏ธ send broadcast to bot users. |
- Same format as sent (Document remains Document, Video remains Video)
- Force to Document (All uploads as files)
- General Media (Streamable Video/Audio)
Yash Dk ๐ฟDeveloper(Base repo)
Yuilariy (it's me๐) for fixes & new features, adding Portuguese(Brazilian) & French Language & others))