Canonical content contract for inbound WhatsApp messages.
The struct is intentionally independent from transport and Signal details. Legacy message-map fields remain available at the publishing boundary while wrappers can consume this single typed value.
Summary
Functions
Adapts an already-normalized legacy message map to the canonical contract.
Builds a canonical content value from one supported kind and its fields.
Converts canonical content to the existing message-map fields.
Types
@type kind() ::
:text | :media | :location | :contact | :event | :protocol | :unsupported
Functions
Adapts an already-normalized legacy message map to the canonical contract.
Builds a canonical content value from one supported kind and its fields.
Converts canonical content to the existing message-map fields.