Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pi Telegram Agent user guide

中文指南 · Back to the project README

This guide is for operators and users. You can connect 1..N configurable AI companions to one Telegram supergroup and use Pi’s native interface without first learning the internal architecture.

Shortest path

  1. Prepare the group ID and a BotFather token; authenticate and select the default model with Pi /login and /model.
  2. Run bun run pi from the repository.
  3. Run /tg config in Pi and wait for the all-bots feed to open.

Read in order:

Product boundaries

  • One deployment = one Telegram supergroup + 1..N bots.
  • Closing Pi does not stop the daemon. Telegram is the chat venue; Pi is the local observation and control interface.
  • Multiple groups require isolated working directories and all data/session/process resources.
  • telegram.config.ts is trusted executable local code, not a sandbox for downloaded configuration.
  • Tracked files contain no valid credentials or deployment personas; older Git history may still contain removed personas.