feat(bot): add Telegram bot with Letta integration
Implements src/bot.ts (bead assistant-pqh.2, assistant-pqh.4)
Bot features:
- Telegraf-based Telegram bot
- /start command with welcome message
- /help command listing capabilities
- Text message handling with typing indicator
Letta integration:
- Creates one agent per Telegram user (in-memory mapping)
- Agents use Claude Opus 4.5 via anthropic-proxy
- OpenAI embeddings for memory
- ADHD support persona in memory blocks
- Non-streaming message flow
Deployment modes:
- handleUpdate() for webhook mode (production)
- startPolling() for polling mode (development)
- Graceful shutdown on SIGINT/SIGTERM
Error handling:
- Catches and logs all errors
- User-friendly error messages
- Never crashes on message failures
Dependencies:
- telegraf@^4.16.3
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>