Skip to content

yuIlariy/Mesh-RenameBot

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ Mesh Rename Bot

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! ๐Ÿ†โœจ


โš ๏ธ Beta Release Notice

  • 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! ๐Ÿ˜Š

๐Ÿ›  Features

โœ… 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๐Ÿ‡ฎ๐Ÿ‡ท)


Test the bots

Check on Telegram ๐Ÿš€By Yash

Beta Bot V2 ๐Ÿš€By yuilariy(Maybe stable ๐Ÿช†)


โ€ผ๏ธUse PostgreSQL database

mongodb is extremely slow, not yet fixed โ€ผ๏ธ

โ˜๏ธ Deploy to Heroku

Deploy your own instance of the bot on Heroku with one click!

Deploy


๐Ÿซง PostgreSQL database URL

Serverless PostgreSQL with a generous free tier๐Ÿ‘‡

๐Ÿš€ Neon tech

๐Ÿš€ Aiven

๐Ÿ–ฅ VPS Deployment Guide

For self-hosted deployment on a VPS, follow these steps:

1๏ธโƒฃ Install Dependencies

sudo apt update && sudo apt install ffmpeg python3-pip

2๏ธโƒฃ Clone the Repository

git clone https://github.com/yuilariy/Mesh-RenameBot.git
cd Mesh-RenameBot

3๏ธโƒฃ Install Python Packages

  • Create Virtual Environment (recommended)
python3 -m venv mesh
source mesh/bin/activate
pip3 install -r requirements.txt

4๏ธโƒฃ Run the Bot

python3 -m MeshRenameBot
  • To run the bot in the background:

    screen -S meshr
    python3 -m MeshRenameBot
    • Detach: Ctrl + A, then Ctrl + D
  • To stop:

    screen -r meshr
    • CTRL+C
    • then
      screen -S meshr -X quit

๐Ÿ” Filters Explained

Filters can be managed using the /filters command.

๐Ÿท Addition Filter

โž• Adds specific text to the beginning or end of the file name.

โŒ Remove Filter

๐Ÿšซ Removes specific text from the file name if present.

๐Ÿ”„ Replace Filter

๐Ÿ” Replaces a specific text with a new text.


โš™๏ธ Configuration Variables

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)

๐Ÿ“œ Commands List

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.

๐Ÿ”„ Upload Modes:

  • Same format as sent (Document remains Document, Video remains Video)
  • Force to Document (All uploads as files)
  • General Media (Streamable Video/Audio)

๐ŸŽ– Credits

Yash Dk ๐Ÿ—ฟDeveloper(Base repo)

Dan for Pyrogram

Yuilariy (it's me๐Ÿ‘‘) for fixes & new features, adding Portuguese(Brazilian) & French Language & others))

spes ๐Ÿช†

About

One of the best Rename bot for telegram. Heroku deployable and many features. ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%