You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2026. It is now read-only.
Roxy Rename Bot isnβt just another generic rename wrapper. Itβs a fully custom-built Telegram automation bot with advanced media handling capabilities, because we think your files should be renamed, customized, and managed exactly the way you expect. If you want something that actually feels good to use, this is it.
Important
System Requirements: A valid Telegram Bot Token from @BotFather, API ID, and API Hash are required. A Premium STRING_SESSION is mandatory for supporting files above 2GB up to 4GB.
β¨ Features
β‘ Playback & Media Handling
π Multi-Threaded Rename Engine: Processes multiple renaming requests concurrently with low latency and high reliability.
π 4GB Super-Sized Uploads: Uses custom Pyrogram Premium User string sessions to bypass Telegram's default 2GB upload limit.
πΌοΈ Permanent Custom Thumbnails: Save individual customized thumbnails (`.jpg`/`.png`) to bind to renamed files automatically.
βοΈ Dynamic Custom Captions: Embed placeholders like `{filename}`, `{filesize}`, `{duration}`, and `{ext}` into caption layouts.
π·οΈ Automated Prefix & Suffix: Configure static prefixes or suffixes to prepend or append to all renamed items.
π¬ Advanced Video Tools (FFmpeg Engine)
π Multi-Format Subtitle Muxer: Embed external SubRip (`.srt`) or Advanced SubStation Alpha (`.ass`) tracks directly into videos.
βοΈ Frame-Accurate Video Trimming: Cut video files to precise lengths using start/end timestamp configurations.
π΅ Lossless Audio Extraction: Separate and extract audio tracks from any video and save them as high-quality `.mp3`/`.m4a` files.
ποΈ Smart Video Compressor: Reduce file weights drastically while retaining crisp video fidelity.
π¨ Custom Video Watermarking: Burn persistent text overlays or logos onto output files.
π€ Automation & Smart Filters
π€ Custom Extension Autorenaming: Create custom rules based on format types to process inputs without prompts.
π Metadata Injector & Editor: Overwrite or embed title, artist, album, description, and copyright metadata tags.
π NSFW Content Scanner: Uses Hugging Face API models to scan, detect, and filter out sensitive or adult images and clips.
πΏ TMDb Auto-Metadata: Fetches descriptions, cover arts, casting details, and ratings automatically for movie files.
π‘οΈ Administration & Premium Management
π Interactive Admin Dashboard: Control systems, monitor live resource usage, and review real-time activity statistics.
π’ Multi-Channel Force Sub: Block bot usage until users subscribe to up to two customizable Telegram channels.
π³ Tiered Subscription Options: Group users into plans (Trial, Bronze, Silver, Gold, Platinum, Diamond) with custom limits.
ποΈ Auto-Delete Storage Saver: Schedules automatic deletion of processed files to keep host resources clean.
π DEPLOY ME
Koyeb
Render
Railway
Heroku
βοΈ ENVIRONMENT VARIABLES CONFIG (.env)
Deploy the bot locally or on cloud servers by setting up the environment. Copy .env.example to .env and fill in the parameters:
Your Telegram Bot Token from @BotFather (Required)
DB_URL
MongoDB connection URL (Required)
DB_NAME
Database name (Default: Roxy_Rename_Bot)
ADMIN
Telegram User IDs of administrators (Space-separated)
STRING_SESSION
Premium session string for 4GB upload support (Optional)
FORCE_SUB
Username or ID of the first force join channel (Optional)
FORCE_SUB2
Username or ID of the second force join channel (Optional)
TMDB_API_KEY
TMDb API Key for movies auto-info (Optional)
NSFW_API_KEY
HF API Key for adult filter (Optional)
π₯οΈ LOCAL RUN
Ensure Python 3.10+ and FFmpeg are installed on your machine.
Install dependencies:
pip install -r requirements.txt
Start the bot:
python bot.py
π€ Acknowledgments
We stand on the shoulders of open-source giants:
Digital Rename Bot by DigitalBotz for the base project codebase.
Pyrogram / Pyrofork for the Telegram client framework.
FFmpeg for video processing engines.
If Roxy Rename Bot elevated your Telegram experience, please consider giving us a β
About
π€ Telegram bot to auto-rename files up to 4GB with custom patterns, thumbnail injection, metadata editing & multi-format support. Supports documents, videos & audio. Set rename rules once, bot handles the rest β built with Python, Pyrogram & MongoDB.