Skip to content

justfortestingnothibghere/TeamDev-FileToLink-V3

Repository files navigation

🎬 FileToLink V3

Convert Telegram Files into Streaming & Download Links — Instantly

Telegram Bot Support Updates Developer


Project by @TEAM_X_OG · Known as TEAMDEV
Open-source — Free to use & modify · Removing credits is NOT allowed.
🔗 GitHub


✨ Features

Feature Details
🎬 Video Streaming In-browser player with a sleek modern UI
🎵 Audio Streaming Built-in audio player support
📁 File Downloads Direct download links for any file type
🛡️ Rate Limiting Flood + command rate limit protection
📦 Upload Limits Per-user configurable size limits (up to 4 GB)
👮 Admin Panel Ban/unban, delete files, set limits, broadcast
📋 Activity Logs Every action logged to your Telegram channel
🐳 Docker Ready One-command deployment with Docker
💎 Premium Plans Built-in UPI-based premium subscription system

📋 Prerequisites

Before you start, get these ready:

  • ✅ A Telegram Bot Token — from @BotFather
  • API ID & API Hash — from my.telegram.org
  • ✅ A Log Channel — create a channel, add your bot as admin, copy the channel ID
  • ✅ Your Telegram User ID — to set yourself as admin

⚙️ Configuration

All settings live in config/config.py and can be set via environment variables:

BOT_TOKEN      = your_bot_token
API_ID         = your_api_id
API_HASH       = your_api_hash
BOT_USERNAME   = FileToLinkv3_Bot

LOG_CHANNEL    = -1003580719468      # Your log channel ID
ADMINS         = 8163739723          # Space-separated admin user IDs

DOMAIN         = watch.yourdomain.com
PORT           = 8080

DB_PATH        = data/filetolink.db
FILES_DIR      = data/files
MAX_FILE_SIZE  = 4294967296          # 4 GB
MIN_FREE_BYTES = 2147483648          # 2 GB minimum free space

UPI_ID         = your-upi@bank
UPI_NAME       = Your Name

DOWNLOAD_SECRET = your_random_secret_string

🚀 Quick Start

Option 1 — Docker (Recommended)

git clone https://github.com/TeamDev-07/FileToLink-TeamDev
cd FileToLink-TeamDev
cp .env.example .env
nano .env          # Fill in your values
docker-compose up -d

Option 2 — Manual

git clone https://github.com/TeamDev-07/FileToLink-TeamDev
cd FileToLink-TeamDev
pip install -r requirements.txt
python main.py

🤖 Bot Commands

👤 User Commands

Command Description
/start Register and see welcome message
/help Show help menu
/myfiles List your uploaded files
/stats Your account statistics

🔧 Admin Commands

Command Description
/ban [user_id] Ban a user
/unban [user_id] Unban a user
/delfile [file_id] Delete a file from the database
/limit [user_id] [size]gb/mb Set per-user upload limit
/broadcast [message] Send message to all registered users

🌐 URL Format

Once deployed with your domain, files are accessible as:

https://watch.yourdomain.com/watch/teamdev/hash?{hash}/id?{file_id}   ← Stream page
https://watch.yourdomain.com/download/hash?{hash}/id?{file_id}         ← Download page
https://watch.yourdomain.com/stream/hash?{hash}/id?{file_id}           ← Raw stream

📁 Project Structure

FileToLink/
├── 📄 main.py                  ← Entry point
├── 📄 requirements.txt
├── 🐳 Dockerfile
├── 🐳 docker-compose.yml
├── 🌐 nginx.conf
├── config/
│   └── config.py               ← All configuration
├── bot/
│   ├── handlers.py             ← Telegram bot handlers
│   ├── database.py             ← SQLite database helpers
│   └── utils.py                ← Utility functions
├── web/
│   ├── server.py               ← Flask web server + streaming
│   └── templates/
│       ├── player.html         ← Modern video/audio player
│       ├── download.html       ← Download page
│       ├── index.html          ← Landing page
│       ├── pending.html        ← Pending page
│       ├── 403.html            ← Forbidden error page
│       └── 404.html            ← Not found error page
└── data/
    ├── filetolink.db           ← SQLite database (auto-created)
    └── files/                  ← Uploaded files storage

💎 Premium Plans

Plan Price Duration
🥉 1 Month ₹149 30 days
🥈 3 Months ₹329 90 days
🥇 1 Year ₹999 365 days

Payments via UPI · Contact @MR_ARMAN_08


⚠️ Default Limits

  • Max file size: 4 GB (configurable per-user by admin)
  • Command rate limit: 5 seconds between commands
  • Flood protection: 10 messages per 10 seconds
  • Min free disk space: 2 GB required to accept uploads

🌍 Hosting Options

Guide Best For
VPS Hosting Full control, persistent storage, custom domain
Render Hosting Free tier, easy deployment, no server management
Railway Hosting Fast deploy, generous free tier, great DX

📜 License

MIT License — Free to use, modify, and distribute.
⚠️ Removing credits/attribution is NOT allowed.


Made with ❤️ by TEAMDEV
🔔 Updates · 💬 Support · 👨‍💻 Developer

About

File To Link Bot Telegram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors