Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.18 KB

File metadata and controls

45 lines (37 loc) · 1.18 KB

FilesLink Installation & Setup

Prerequisites

  • Telegram bot token from BotFather
  • Private Telegram channel for storage
  • Docker (recommended) or Rust toolchain

Environment Variables

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.

Docker Setup

git clone https://github.com/kvnxo/fileslink.git
cd fileslink
cp .env.example .env   # Edit with your credentials
docker compose up -d

Local Setup

  1. Install Rust: https://rustup.rs/
  2. Build and run:
    cargo build --release
    cargo run --release

Access

  • The bot will be available at http://localhost:8080
  • Uploaded files are stored in your Telegram channel

Next Steps