init: telegram bot bridging messages to claude sessions
Async Rust bot (teloxide + tokio) that: - Authenticates users per chat with a passphrase (resets daily at 5am) - Generates deterministic UUID v5 session IDs from chat_id + date - Pipes messages to `claude -p --session-id/--resume <uuid>` - Persists auth and session state to disk across restarts - Deploys as systemd --user service via `make deploy`
This commit is contained in:
8
config.example.yaml
Normal file
8
config.example.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
tg:
|
||||
key: "YOUR_TELEGRAM_BOT_TOKEN"
|
||||
|
||||
auth:
|
||||
passphrase: "YOUR_AUTH_PASSPHRASE"
|
||||
|
||||
session:
|
||||
refresh_hour: 5
|
||||
Reference in New Issue
Block a user