Skip to content

v0.2.5 — Telegram rich messages 🧾

Latest

Choose a tag to compare

@smixs smixs released this 15 Jul 01:40

Telegram rich messages (Bot API 10.1)

iva now renders tables, checklists, collapsible <details> blocks and math natively in Telegram, instead of dumping raw | … | markup. Replies that contain these constructs go out via sendRichMessage; everything else keeps the proven HTML path.

  • Automatic — no command needed: a reply with a table/task-list/<details>/$$…$$ is detected and sent as a rich message.
  • Safe by construction — any rejection (older Bot API, parse error, size cap) falls back to the existing HTML+plain path, so the worst case equals prior behavior.
  • No streaming complexity — iva sends each reply once, so it's a single rich-vs-HTML choice at send time.

Detector needsRichMessage() lives in the shared telegram-format module with a self-check; delivery uses the channel's raw Bot API call.

Full changelog: v0.2.4...v0.2.5