Skip to content

Diagram — Sequence — Record Expense

Happy-path + access-denied + parser-fail branches for the most common flow: user types 250 кафе, the bot posts a transfer default_account → external_expense. Demonstrates the update_id dedup at the middleware layer and the UUIDv7 transfer-id idempotency at the ledger layer.


PlantUML Diagram

  • SRS section: SRS — Telegram Finance Bot §🔄 High-Level Flow (Phase 2A) and §⚙️ Technical Behavior
  • ADRs: ADR-0007 (default-with-override), ADR-0014 (lock ordering), ADR-0019 (cross-port idempotency), ADR-0022 (update_id dedup)