Skip to the content.

Sessions and conversation flow

← Back to README

This stack uses session_mode = "chat": the bot automatically resumes the previous Claude session on every new message. Just keep sending messages, no special commands needed.

Message flow

  1. You send a message in Telegram.
  2. Takopi passes it to claude -p "your message" --resume <session_id>.
  3. Claude continues the previous conversation, remembering what it did before.
  4. Takopi streams Claude’s response back to Telegram.

Useful commands

Command What it does
/new Clear the session and start fresh
/cancel Reply to a progress message to stop the current run

Things to keep in mind