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.
›› Click to expand all features
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.
Add unlimited Force-Sub channels or clear them all instantly — no limit on how many you can add. Full control with no restrictions.
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.
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.
Provide image URLs or directly send photos to customize the Start and Force-Subscribe messages.
Customize Start, About, Reply, and FSub messages with full HTML formatting and dynamic placeholders.
Integrate your own shortener URL and API key with built-in token verification. Includes tutorial links for easy setup.
Full premium user management — add/remove premium users, manage credits, and send exclusive premium broadcasts.
Add and manage multiple database channels (primary + secondary) directly from the bot without editing config.
| Command | Description |
|---|---|
/start |
Check alive or dead! |
/buy |
See premium plans or buy |
/credits |
Check your credit status |
/profile |
View your profile |
| 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 |
| Command | Description |
|---|---|
/db |
View DB channel configs |
/adddb |
Add a primary or secondary DB channel |
/removedb |
Remove a DB channel |
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"
⚠️ Editconfig.pywith your values before deploying on any platform.
1. Fork this repo to your GitHub account
2. Go to render.com → New → Web Service
3. Connect your forked repo
4. Render auto-detects render.yaml — just click Deploy
Render injects
PORT=10000automatically. Flask health check hits"/"and keeps your service alive.
# 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# 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# 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- 🔑 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
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.
| Developer | Role |
|---|---|
| BotifyX | Developer & Maintainer |
| 彡 ΔNI_OTΔKU 彡 | Core Concept |
| ProYato | Base Repo |