Skip to content

botifyx-bots/File-store-Pro

Repository files navigation

──「 ғɪʟᴇ sᴛᴏʀᴇ ᴘʀᴏ 」──

Stars License Python


📋 ᴏᴠᴇʀᴠɪᴇᴡ

A highly secure, multi-featured Telegram File Share Bot that generates permanent sharing links for files stored in database channels. Built with Pyrogram v2 and MongoDB — everything is configurable directly from the bot with no restarts needed.


✨ ғᴇᴀᴛᴜʀᴇs

›› Click to expand all features

›› ʀᴇǫᴜᴇsᴛ ғᴏʀᴄᴇ sᴜʙ

By enabling Request Force-Sub mode, users are provided with a private channel link along with a join request. This feature adds versatility, allowing for greater flexibility in managing Force-Sub channels based on individual preferences.

›› ᴄᴜsᴛᴏᴍ ғᴏʀᴄᴇ sᴜʙ

Add unlimited Force-Sub channels or clear them all instantly — no limit on how many you can add. Full control with no restrictions.

›› ᴀᴅᴅ ᴍᴜʟᴛɪ ᴀᴅᴍɪɴs

Add or remove multiple admins via user ID. Admins get access to a curated set of bot commands without full owner privileges.

›› ʙᴀɴ / ᴜɴʙᴀɴ

Block spammers and abusive users from accessing the bot instantly. Unban them anytime from the admin panel.

›› ᴀᴜᴛᴏ ᴅᴇʟᴇᴛᴇ

Protect your bot from copyright strikes with a smart auto-delete system. Set custom timers — files are removed automatically, and a retrieval link is sent so users never lose access.

›› ᴄᴏɴᴛᴇɴᴛ ʙᴜᴛᴛᴏɴs

Attach fully customizable inline buttons to every shared file. Set button labels and links (e.g. "Join Channel") tailored to your needs.

›› ʜɪᴅᴇ ᴄᴀᴘᴛɪᴏɴ & ᴘʀᴏᴛᴇᴄᴛ ᴄᴏɴᴛᴇɴᴛ

Toggle captions on/off for shared files. Enable Protect Content to prevent users from forwarding or screenshotting files.

›› sᴛᴀʀᴛ & ғsᴜʙ ᴍᴇᴅɪᴀ

Provide image URLs or directly send photos to customize the Start and Force-Subscribe messages.

›› ғᴜʟʟʏ ᴇᴅɪᴛᴀʙʟᴇ ᴍᴇssᴀɢᴇs

Customize Start, About, Reply, and FSub messages with full HTML formatting and dynamic placeholders.

›› ᴄᴜsᴛᴏᴍ ᴜʀʟ sʜᴏʀᴛᴇɴᴇʀ

Integrate your own shortener URL and API key with built-in token verification. Includes tutorial links for easy setup.

›› ᴘʀᴇᴍɪᴜᴍ sʏsᴛᴇᴍ

Full premium user management — add/remove premium users, manage credits, and send exclusive premium broadcasts.

›› ᴍᴜʟᴛɪ ᴅʙ ᴄʜᴀɴɴᴇʟs

Add and manage multiple database channels (primary + secondary) directly from the bot without editing config.


🤖 ʙᴏᴛ ᴄᴏᴍᴍᴀɴᴅs

👤 ᴜsᴇʀ ᴄᴏᴍᴍᴀɴᴅs

Command Description
/start Check alive or dead!
/buy See premium plans or buy
/credits Check your credit status
/profile View your profile

👑 ᴏᴡɴᴇʀ / ᴀᴅᴍɪɴ ᴄᴏᴍᴍᴀɴᴅs

Command Description
/shortner Open shortener configs
/genlink Generate a link for one file
/batch Generate links for more than one file
/usage Check link usage stats
/stats See full bot stats
/users View all users list
/broadcast Send a message to all users
/pbroadcast Send a message to premium users only
/ban Ban a user
/unban Unban a user
/request Send a request

💎 ᴘʀᴇᴍɪᴜᴍ ᴍᴀɴᴀɢᴇᴍᴇɴᴛ

Command Description
/addpremium Add any user to premium
/delpremium Remove any user from premium
/premiumusers Get list of all premium users
/add_credit Add credits to any user

🗄️ ᴅᴀᴛᴀʙᴀsᴇ ᴄʜᴀɴɴᴇʟ ᴍᴀɴᴀɢᴇᴍᴇɴᴛ

Command Description
/db View DB channel configs
/adddb Add a primary or secondary DB channel
/removedb Remove a DB channel

⚙️ ᴠᴀʀɪᴀʙʟᴇs

Edit config.py directly before deploying:

# ── Bot Core ──────────────────────────────────
SESSION  = "your_session_name"
TOKEN    = "your_bot_token"
API_ID   = your_api_id
API_HASH = "your_api_hash"
WORKERS  = 5

# ── Database ──────────────────────────────────
DB_URI   = "your_mongodb_uri"
DB_NAME  = "your_database_name"

# ── Channels ──────────────────────────────────
# Force Subscription: [channel_id, request_enabled, timer_in_minutes]
FSUBS      = [[-1001234567890, True, 10]]
DB_CHANNEL = -1001234567890

# ── Settings ──────────────────────────────────
AUTO_DEL    = 300          # Auto delete timer in seconds (0 = off)
ADMINS      = [123456789]  # Admin user IDs
DISABLE_BTN = True         # Hide content buttons
PROTECT     = True         # Block forwarding & screenshots

# ── URL Shortener ─────────────────────────────
SHORT_URL = "shrinkme.io"
SHORT_API = "your_api_key"
SHORT_TUT = "https://t.me/your_tutorial_link"

🚀 ᴅᴇᴩʟᴏʏᴍᴇɴᴛ

⚠️ Edit config.py with your values before deploying on any platform.


☁️ ᴅᴇᴩʟᴏʏ ᴏɴ ʀᴇɴᴅᴇʀ

1. Fork this repo to your GitHub account

2. Go to render.comNewWeb Service

3. Connect your forked repo

4. Render auto-detects render.yaml — just click Deploy

Render injects PORT=10000 automatically. Flask health check hits "/" and keeps your service alive.


🟣 ᴅᴇᴩʟᴏʏ ᴏɴ ʜᴇʀᴏᴋᴜ

Option A — Heroku Container Stack (recommended)

# 1. Login and create app
heroku login
heroku create your-app-name

# 2. Set container stack
heroku stack:set container -a your-app-name

# 3. Push and deploy
git push heroku main

# 4. Scale the web dyno
heroku ps:scale web=1 -a your-app-name

# 5. View logs
heroku logs --tail -a your-app-name

Option B — One-Click Deploy


🖥️ ᴅᴇᴩʟᴏʏ ᴏɴ ᴠᴘs / ʟᴏᴄᴀʟ

Method A — Plain Python

# 1. Clone the repo
git clone https://github.com/botifyx-bots/File-store-Pro
cd File-store-Pro

# 2. Install dependencies
pip3 install -U -r requirements.txt

# 3. Edit config with your values
nano config.py

# 4. Run the bot
python3 main.py

Method B — Docker

# 1. Clone the repo
git clone https://github.com/botifyx-bots/File-store-Pro
cd File-store-Pro

# 2. Edit config with your values
nano config.py

# 3. Build and run
docker build -t file-store-pro .
docker run -d --name file-store-pro --restart unless-stopped file-store-pro

# 4. View logs
docker logs -f file-store-pro

🔐 sᴇᴄᴜʀɪᴛʏ

  • 🔑 Token-based verification on every file link
  • 🔗 URL shortener gateway before file access
  • 🛡️ Content protection & caption control
  • 🚫 User ban system with instant effect
  • ⏳ Auto-delete for copyright safety

📝 ʟɪᴄᴇɴsᴇ

This project is licensed under the GNU General Public License v3.0 (GPLv3). You are free to use, modify, and share it — but you must give credit and keep it under the GPL license.

You can freely host this repo yourself. All we ask is that you provide proper credits by linking back to this repository.


🙌 ᴄʀᴇᴅɪᴛs

Developer Role
BotifyX Developer & Maintainer
彡 ΔNI_OTΔKU 彡 Core Concept
ProYato Base Repo

🤝 Contributions are always welcome!
Feel free to open pull requests to improve this repo 🖤

About

🤖 A powerful, feature-rich Telegram File Share Bot with secure token verification, URL shortener, Force-Sub, auto-delete, multi-admin support, and fully customizable settings — built for speed, security, and scale.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages