A Telegram bot that converts files to streamable links with a Netflix-style web interface for watching videos and downloading files.
- 🎬 Video Streaming: Watch videos directly in browser with a Netflix-style player
- 🎵 Audio Streaming: Listen to audio files with built-in player
- 📁 File Downloads: Download any file type with a modern download page
- 📱 Mobile Responsive: Works perfectly on all devices
- 🎯 External Player Support: Open videos in MX Player, VLC, and other external players
- 🔗 Direct Links: Generate direct download/stream links for any file
- Video Streaming: Modern video player with playback controls
- Download Page: Clean, Netflix-style download interface
- Mobile Friendly: Optimized for mobile devices
- Python 3.8 or higher
- Telegram Bot Token
- Telegram API ID and Hash
- Clone the repository:
git clone https://github.com/MeeRazi/FileToLink.git
cd FileToLink- Install dependencies:
pip install -r requirements.txt- Configure the bot:
- Copy
config_sample.envtoconfig.env - Edit
config.envwith your credentials:
- Copy
API_ID=your_api_id
API_HASH=your_api_hash
BOT_TOKEN=your_bot_token
BIN_CHANNEL=-100xxxxxxxxx
STREAM_URL=https://your-domain.com/- Run the bot:
python bot.pyAPI_ID: Get from my.telegram.orgAPI_HASH: Get from my.telegram.orgBOT_TOKEN: Get from @BotFatherBIN_CHANNEL: Channel ID where files will be storedSTREAM_URL: Your domain URL for streaming
- Send any file to the bot
- Get a link to stream/download the file
- Share the link with anyone
- Video: MP4, AVI, MKV, OGG, and more
- Audio: MP3, MP4, WAV, and more
- Files: Any file type for download
- Netflix-style dark theme
- Video.js player with advanced controls
- Mobile-responsive design
- External player integration
- Download functionality
- Clean download interface
- File information display
- Progress indicators
- Mobile-optimized
docker build -t filetolink-bot .
docker run -d --name filetolink -p 8080:8080 filetolink-bot- Telegram: @BotSync
- Issues: GitHub Issues