Home
Softono

File Store

Open source Python
12
Stars
20
Forks
0
Issues
0
Watchers
4 months
Last Commit

 About File Store

💎 The ultimate Telegram File Sharing solution: 🔒 Secure Tokens • 📦 Auto-Batch • 🗄️ Multi-DB • 💳 Credit System • ⚡ Fast & Modern.

Platforms

Web Self-hosted

Languages

Python

Need Help Installing File Store?

We provide expert installation service for this software. Our team will install, configure, and secure File Store on your server. plans start at just $30.

File Store

View on GitHub

Advanced File Store Bot Banner


Telegram File Sharing Bot

A powerful Telegram bot for file sharing with advanced features including batch processing, premium memberships, multi-database channel support, URL shortening with token verification, and comprehensive admin controls.


✨ Features

Core Features

  • 📁 File Sharing - Share files via unique links with automatic link generation
  • 🔒 Hybrid Token System - Secure, random 12-16 char token links with full backward compatibility for legacy Base64 links.
  • 📦 Batch Processing - Create batches for episodes/seasons with cancel functionality
  • 🤖 Auto Batch - Automatic batch creation with quality detection and configurable time windows
  • 💎 Premium System - Full subscription management with pricing tiers and expiry tracking
  • 🗄️ Multi-DB Channels - Round-robin file distribution across multiple database channels
  • 🔗 URL Shortening - Integrated URL shortener with multiple provider support

Admin Features

  • 👥 Premium User Management - Control panel to add/remove premium users with expiry dates
  • 📊 Statistics Dashboard - Track bot usage, user stats, and premium subscriptions
  • 🔒 Force Subscribe - Require channel subscription for file access
  • 💳 Credit System - Token-based access control with package management
  • 🔐 Security Panel - Token verification, anti-bypass protection, and bypass logs
  • 📢 Broadcast System - Send messages to all users or specific groups

User Experience

  • 🎨 Modern UI - Small caps font styling with blockquotes for premium look
  • Fast Performance - Optimized file delivery and caching
  • 🔔 Notifications - Auto-notify users on premium status changes
  • 📱 Mobile Friendly - Responsive design for all devices

📋 Requirements

  • Python 3.8+
  • MongoDB
  • Telegram Bot Token (from @BotFather)
  • Telegram API ID and Hash (from my.telegram.org)

🚀 Installation

1️⃣ Clone the Repository

git clone https://github.com/Awakener_Bots/File-Store
cd File-Store

2️⃣ Install Dependencies

pip install -r requirements.txt

3️⃣ Configuration

Fill a setup.json file:

[
    {
        "session": "ses1",
        "token": "BOT_TOKEN",
        "api_id": "12345678",
        "api_hash": "",
        "workers": 8,
        "db_uri": "mongodb+srv://Awakeners-bots-Powered-by",
        "db_name": "Awakenersbots",
        "fsubs": [],
        "db": -1234567890,
        "auto_del": 300,
        "messages": {
            "START": "<b><blockquote><b><blockquote>Moshi Moshi Senpai {mention}</blockquote></b>\n<b>I'm Akuma Sama a Filestore bot of @Anime_Mortals</b></blockquote>",
            "FSUB": "Hᴇʟʟᴏ Sᴇɴᴘᴀɪ {mention}\n\n<b>Yᴏᴜ Nᴇᴇᴅ Tᴏ Jᴏɪɴ Iɴ Mʏ Cʜᴀɴɴᴇʟs Tᴏ Gᴇᴛ Fɪʟᴇs</b>",
            "ABOUT": "<b><blockquote expandable>╭───────────────⍟\n├➽ Dᴇᴠᴇʟᴏᴩᴇʀ : <a href=\"https://t.me/GPGMS0\"><b>GPG</b></a>\n├➽ Oᴡɴᴇʀ : <a href=\"https://t.me/GPGMS0\"><b>𝗚𝗣𝗚</b></a>\n├➽ Aɴɪᴍᴇ Iɴᴅᴇx : <a href=\"https://t.me/Anime_Mortals\"><b>Aɴɪᴍᴇ Mᴏʀᴛᴀʟs</b></a>\n├➽ Fɪɴɪsʜᴇᴅ Aɴɪᴍᴇ : <a href=\"https://t.me/Anime_Awakeners\"><b>Aɴɪᴍᴇ Aᴡᴀᴋᴇɴᴇʀs</b></a>\n├➽ Oɴɢᴏɪɴɢ Aɴɪᴍᴇ : <a href=\"https://t.me/Ongoing_Mortals\"><b>Oɴɢᴏɪɴɢ Mᴏʀᴛᴀʟ</b></a>\n├➽ Mᴀɴʜᴡᴀ / Mᴀɴɢᴀ : <a href=\"https://t.me/Manhwa_Mortals\"><b>Mᴀɴʜᴡᴀ Mᴏʀᴛᴀʟs</b></a>\n├➽ Nᴇᴛᴡᴏʀᴋ : <a href=\"https://t.me/The_Awakeners\"><b>Tʜᴇ Aᴡᴀᴋᴇɴᴇʀs</b></a>\n├➽ Rᴇǫ/Cʜᴀᴛ : <a href=\"https://t.me/Mortals_Realm\"><b>Mᴏʀᴛᴀʟs Rᴇᴀʟᴍ</b></a>\n╰───────────────⍟</blockquote></b>",
            "REPLY": "<b><blockquote>❌𝗗𝗼𝗻'𝘁 𝘀𝗲𝗻𝗱 𝗺𝗲 𝗱𝗶𝗿𝗲𝗰𝘁 𝗺𝗲𝘀𝘀𝗮𝗴ᴇ𝘀 𝗶𝗻 𝗱𝗺, 𝗱𝗼 𝘆𝗼ᴜ 𝗵𝗮𝘃ᴇ 𝗮 𝗱𝗲𝗮𝘁ʜ 𝘄𝗶𝘀ʜ?</blockquote></b>",
            "START_PHOTO": "",
            "FSUB_PHOTO": ""
        },
        "admins": [
            123456789,
            987654321
        ],
        "disable_btn": true,
        "protect": false,
        "credit_config": {
            "expiry_days": 30,
            "referral_reward": 5,
            "payment_method": "manual",
            "upi_id": "GPGpapaji@Fam",
            "phone": "XXXXXXXXXX",
            "packages": [
                {
                    "id": "pkg_10",
                    "credits": 10,
                    "price": 50,
                    "currency": "INR"
                },
                {
                    "id": "pkg_25",
                    "credits": 25,
                    "price": 100,
                    "currency": "INR",
                    "popular": true
                },
                {
                    "id": "pkg_50",
                    "credits": 50,
                    "price": 180,
                    "currency": "INR"
                },
                {
                    "id": "pkg_100",
                    "credits": 100,
                    "price": 300,
                    "currency": "INR"
                }
            ]
        },
        "token_config": {
            "token_expiry_minutes": 10,
            "max_bypass_attempts": 5,
            "bypass_check_hours": 24
        },
        "auto_batch_config": {
            "enabled": true,
            "time_window_seconds": 30,
            "min_files_for_batch": 2
        }
    }
]

4️⃣ Run the Bot

python main.py

📝 Commands

User Commands

  • /start
  • /about
  • /premium
  • /mypremium

Admin Commands

  • /batch
  • /genlink
  • /autobatch
  • /broadcast
  • /stats
  • /addpremium <user_id> [days]
  • /removepremium <user_id>
  • /settings

🗂️ Project Structure

file-sharing-bot/
├── bot.py
├── config.py
├── requirements.txt
├── plugins/
├── helper/
└── README.md

👨💻 ᴄʀᴇᴅɪᴛs

ᴅᴇᴠᴇʟᴏᴘᴇʀ

» ɢᴘɢ

» ᴋᴜɴᴀʟ

ᴍᴀɪɴᴛᴀɪɴᴇᴅ ʙʏ
» ᴀᴡᴀᴋᴇɴᴇʀs ʙᴏᴛs

⚠️ Disclaimer

This bot is for educational purposes. Ensure compliance with Telegram's Terms of Service and local laws.


ᴍᴀᴅᴇ ᴡɪᴛʜ ❤️ ʙʏ ᴀᴡᴀᴋᴇɴᴇʀs ʙᴏᴛs

⭐ Star this repository if you find it helpful!