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`
389 B
389 B
TODO
- Streaming responses — edit message as
msoutput arrives instead of waiting for full completion - Markdown formatting — parse
msoutput and send with TG MarkdownV2 - Timeout handling — kill
msif it hangs beyond a threshold - Graceful shutdown on SIGTERM
/resetcommand to force new session without waiting for 5am- Rate limiting per chat