PUBLIC REPO
Press Below Button to Deploy!
ADD YOUR BOT TOKEN / CREDENTIALS IN config.py OR ENVIRONMENT VARIABLES
This Branch / Repo Supports: ReNameXBot — Rename, upload & manage files.
Behavior:
- Files ≤ 2GB are re-uploaded to Telegram.
Rename— Rename files/videos and re-upload them with a custom name.Renamelink— Rename and re-upload directly from supported links (Pixeldrain, FastCloud, Workers.dev, Googleusercontent, Cloudflare - Workers.dev, Seedr, Heroku(SomeLinks) etc.) and display domain name for identification.Settings— Per-user settings panel (screenshot toggle, count, prefix, rename type).Thumbnail— Save & use custom thumbnails for uploads.Screenshots— Auto-capture screenshots from videos (configurable count).Tasks— Track rename/upload tasks (admin view with pagination).Getfile— Retrieve previously saved/uploaded files.Custom Caption / Prefix— Set caption text and prefix for uploaded files.Admin— Remove tasks and clear old database collections.
BOT_TOKEN- Get bot token from @BotFatherAPI_ID- From my.telegram.orgAPI_HASH- From my.telegram.orgADMIN- Admin Telegram ID (comma-separated allowed if extended)MONGO_URL- MongoDB connection string (Atlas or local)SUNRISES_PIC- Start / welcome picture (telegraph or https link)INFO_PIC- Settings / info picture (telegraph or https link)WEBHOOK-TrueorFalse(if using webhook deployment)PORT- Port used for webhook deployments (e.g.,8080)DOWNLOAD_DIR- Local downloads folder (default:downloads)
Example
config.pyenv-vars used in this repo:BOT_TOKEN = os.environ.get("BOT_TOKEN") API_ID = os.environ.get("API_ID") API_HASH = os.environ.get("API_HASH") ADMIN = int(os.environ.get("ADMIN", "123456789")) MONGO_URL = os.environ.get("MONGO_URL") SUNRISES_PIC = os.environ.get("SUNRISES_PIC", "https://envs.sh/eer.jpg") INFO_PIC = os.environ.get("INFO_PIC", "https://envs.sh/ees.jpg") WEBHOOK = bool(os.environ.get("WEBHOOK", True)) PORT = int(os.environ.get("PORT", 8081)) DOWNLOAD_DIR = "downloads"
start - Bot alive check & welcome settings - Open settings panel (screenshot, count, prefix, type, thumb, caption) rename - Reply to a file + /rename <new_name> to rename & re-upload renamelink - Rename and re-upload directly from supported links tasks - List all tasks Pages (admin view available) getfile - /getfile (ownerfile) (or /getfile <user_id> (othersfile) to download stored files removetask - /removetask <user_id> <file.id> (Admin only) setprefix - /setprefix to set prefix setcaption - /setcaption to set custom caption clear - Clear database (Admin only) help - Get help about - Learn about the bot ping - Check bot latency stats - Bot usage info
- Rename a file
- Reply to a document/video with:
/rename new_name.mp4 - Bot will download, rename, and re-upload the file.
- Reply to a document/video with:
2.Renamelink with DirectLink
/renamelink <filename> <link>
- Rename and re-upload directly from supported links (Pixeldrain, FastCloud, Workers.dev, Googleusercontent, Cloudflare - Workers.dev, Seedr, Heroku(SomeLinks) etc.)
- Set a custom prefix
/setprefix MyPrefix
- Save thumbnail
- Send an image privately to the bot. The bot saves it as your thumbnail.
- Get a stored file
/getfile movie.mkv (OwnerFile) or /getfile userid movie.mkv(othersfile)
- Bot searches your saved files and returns a match (case-insensitive, partial match supported).
The bot stores user data in MongoDB. Typical collections:
settings— per-user settings (screenshot, count, prefix, rename_type)thumbnails— saved thumbnail file_idscaptions— custom captionstasks— user tasks (rename/upload tracking) - /removetask <user.id> <file.id>user_files— stored file metadata{ user_id, name, fileid }
- For Webhook deployments (Koyeb / Render / Heroku) set
WEBHOOK=Trueand providePORT. - For long-running processes prefer hosting on a VPS / Docker with sufficient storage for downloads.
- Ensure
DOWNLOAD_DIRhas enough disk space and is persisted between restarts if you want to keep files locally.
Copyright ©️ 𝗦ᴜɴʀɪ𝘀ᴇ𝘀 𝗛ᴀʀ𝘀ʜᴀ 𝟸𝟺 🇮🇳 ᵀᴱᴸ
Selling This Repo For Money Is Strictly Prohibited 🚫
