A small Telegram bot that bridges forum topics to Claude Code sessions. Each forum topic in a Telegram group maps to one Claude Code session (a UUID), stored in sqlite. Photo uploads work — Telegram downloads the image, the bot drops the path into the prompt, and Claude's Read tool loads it.
Why this exists: I had a more complicated version of this that glued each Telegram topic to a live tmux window running an interactive Claude session. It broke constantly — three layers of state, all with independent lifetimes. Replaced all of it with one sqlite row per topic. If a session is lost, the next message mints a new one. No processes to babysit.
- Install Claude Code and authenticate for headless use: