telegram-bot: rewrite to use Pi CLI with streaming JSON output

- Replaced direct Anthropic API with Pi CLI (uses platform auth, no API key needed)
- Model: claude-sonnet-4-6
- Streaming JSON mode with live progress updates in Telegram
- Per-user session files via Pi's --session/--continue
- Auto-recovery from corrupted sessions
- 5 min timeout, not-lazy system prompt
This commit is contained in:
Azreen Jamal
2026-03-06 02:58:58 +08:00
parent bcce1d4549
commit b5d8665ac0
2 changed files with 277 additions and 349 deletions
+4
View File
@@ -9,6 +9,10 @@ __pycache__/
.env
.pi/agent-sessions/
telegram-bot/sessions/
telegram-bot/bot.log
telegram-bot/bot.err
telegram-bot/conversations.json
.playwright-cli/