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
- Prepare the group ID and a BotFather token; authenticate and select the default model with Pi
/loginand/model. - Run
bun run pifrom the repository. - Run
/tg configin Pi and wait for the all-bots feed to open.
Read in order:
- Installation and first setup: Telegram and Pi-model preparation plus the native wizard.
- Configuration and additional bots: typed config, secret boundaries, routing, and N-bot setup.
- Chat and observe in Pi: attach, compose, history, and telemetry.
- Daily operations: daemon lifecycle, configuration changes, backups, and multi-group isolation.
- Troubleshooting: move from an observable symptom to a safe next action.
- Cost design overview: how routing, cache, context, media, and UI avoid wasted calls and tokens.
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.tsis 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.