- Telegram bot token from BotFather
- Private Telegram channel for storage
- Docker (recommended) or Rust toolchain
Copy .env.example to .env and fill in:
BOT_TOKEN=your_bot_token
SERVER_PORT=8080
APP_FILE_DOMAIN=http://localhost:8080/files #change to your domain / hosting domain
TELEGRAM_API_URL=https://api.telegram.org
FILESLINK_PIPE_PATH=/tmp/fileslink.pipe
STORAGE_CHANNEL_ID=-1001234567890
See docs/TELEGRAM_STORAGE_SETUP.md for channel setup and how to get the channel ID using @userinfobot.
git clone https://github.com/kvnxo/fileslink.git
cd fileslink
cp .env.example .env # Edit with your credentials
docker compose up -d- Install Rust: https://rustup.rs/
- Build and run:
cargo build --release cargo run --release
- The bot will be available at
http://localhost:8080 - Uploaded files are stored in your Telegram channel