Internal helper that constructs the standard structure shared by Whapi
interactive messages (button, list, mixed actions, etc.).
It automatically normalizes the recipient (to) using
whapi_normalize_to(), and creates header, body, and footer blocks
only if the corresponding text is provided.
Value
A named list ready to be merged into a Whapi interactive message payload,
containing elements: to, header (if provided), body, and footer
(if provided).
Details
Many Whapi interactive endpoints (e.g., messages/interactive) require
the same basic structure:
to: target number or chat id;
header: optional text shown above the body;
body: main message text (required);
footer: optional small text shown below the body.
This helper ensures consistency and avoids repeating boilerplate code when building different interactive message payloads.
