Smartest girl in telegram.
Try it out - @sl_chatbot yourself or check out quotes - @slushaquotes
- Long-term memory and chat summary command
- Extensive per-chat configuration
- Undertanding of Telegram-specific features, like reply threads, via bot messages, quotes and forwards
- deno
- gemini api key (or other supported by ai-sdk)
cp scripts/env.bash.example scripts/env.bash- set up environment variables
scripts/run.bash- Set
WIDGET_BASE_URLto your public bot URL (example:https://example.com) - Optional web server env vars:
WEB_HOST(default0.0.0.0),WEB_PORT(default8080) - Build widget assets (Deno-first):
scripts/build-widget.bash- Use
/configin chat (/config globalfor global config)
slusha_http_requests_totalslusha_http_request_duration_secondsslusha_telegram_updates_totalslusha_telegram_handler_errors_totalslusha_ai_requests_totalslusha_ai_request_duration_secondsslusha_ai_failures_totalslusha_ai_finish_reason_totalslusha_ai_tokens_totalslusha_rate_limit_exceeded_totalslusha_usage_downgraded_totalslusha_process_uptime_secondsslusha_process_resident_memory_bytes
Add a target in your prometheus.yml:
scrape_configs:
- job_name: slusha
metrics_path: /metrics
static_configs:
- targets:
- localhost:8080If Slusha runs in Docker or another host, replace localhost:8080 with the reachable address.
Import the dashboard JSON from:
grafana/slusha-observability-dashboard.json
In Grafana:
- Go to Dashboards -> Import
- Upload
grafana/slusha-observability-dashboard.json - Select your Prometheus datasource when prompted
# Build and run
docker build -t slusha-bot .
docker run -d \
--name slusha-bot \
--restart unless-stopped \
-e BOT_TOKEN=your_bot_token \
-e AI_TOKEN=your_ai_token \
slusha-bot
# Using Docker Compose
docker-compose --profile production up -d slusha-prod



