English | Русский
A smart Telegram bot for family use. Powered by Google Gemini via OpenRouter.
What it does:
- Chats using LLM with long-term memory (RAG)
- Understands voice messages natively (Gemini multimodal)
- Understands images and PDFs
- Has a web dashboard for debugging
# Create config
mkdir -p data
cat > .env << 'EOF'
LAPLACED_TELEGRAM_TOKEN=your_bot_token
LAPLACED_OPENROUTER_API_KEY=your_api_key
LAPLACED_ALLOWED_USER_IDS=123456789
EOF
# Run
docker run -d --name laplaced \
--env-file .env \
-v $(pwd)/data:/data \
ghcr.io/runixer/laplaced:latestgit clone https://github.com/runixer/laplaced.git
cd laplaced
cp .env.example .env
# Edit .env with your tokens
docker-compose up -dRequirements: Go 1.24+
git clone https://github.com/runixer/laplaced.git
cd laplaced
go run cmd/bot/main.goConfigure via environment variables (recommended) or YAML config.
Required variables:
LAPLACED_TELEGRAM_TOKEN=your_bot_token
LAPLACED_OPENROUTER_API_KEY=your_api_key
LAPLACED_ALLOWED_USER_IDS=123456789,987654321 # ⚠️ Required! Empty = reject allSee .env.example for all options.
Note:
LAPLACED_ALLOWED_USER_IDSmust contain at least one user ID. If empty, the bot will reject all messages.
- Long Polling (default) — simpler, works behind NAT
- Webhook — lower latency, better for production
# For webhook mode:
LAPLACED_TELEGRAM_WEBHOOK_URL=https://your-domain.comBuilt-in web UI for debugging. Disabled by default.
LAPLACED_WEB_ENABLED=true
LAPLACED_WEB_PASSWORD=your_passwordUseful for understanding how RAG works and inspecting memory.
cmd/bot/ — entry point
internal/bot/ — message handling
internal/rag/ — vector search, memory retrieval
internal/memory/ — facts extraction
internal/storage/ — SQLite
See docs/architecture/ for detailed documentation (in Russian).
See CONTRIBUTING.md. PRs welcome!
MIT — see LICENSE.