Telegram: phone to Iris and back

Telegram: phone to Iris and back A sequence diagram generated by Archify. message · photo · voice new message (long-poll) chat turn allowlist · saved to bridge.db · Haiku router recall + tools context · results streamed reply + files HTML reply · send_file protected and UNC paths refused answer POST /relay/send bot=iris for Luke; bot=brain for telemetry sendMessage (iris or brain bot) alert · reminder Luke asks from his phone Iris messages Luke Luke · phone · Sequence participant Luke phone Telegram · Bot API · 2 bots · Sequence participant Telegram Bot API · 2 bots tg-bridge · supervised poller · Sequence participant tg-bridge supervised poller Session · Claude · opus · Sequence participant Session Claude · opus Tools · memory · MCPs · Sequence participant Tools memory · MCPs Iris Relay · :3466 · send-only · Sequence participant Iris Relay :3466 · send-only Brain · + scripts · Sequence participant Brain + scripts Legend request return default message

Inbound: one poller

  • • A supervisor restarts the worker within about 2 seconds
  • • Each chat keeps its own Claude session for 12 hours

Outbound: two bots

  • • The iris bot talks to Luke; the brain bot carries telemetry
  • • Routine telemetry goes to a quiet ledger; criticals push

Known gaps

  • • Phone chats reach the transcript DB, not long-term memory
  • • Relay posts skip the quiet ledger, so brain-bot posts push