OptionalbodyOptionalchannelWhich channel to send on, for a line that carries more than one (an iMessage number with WhatsApp connected). Omit to use the number's own default, so existing calls are unaffected.
"whatsapp" needs a line whose WhatsApp channel is ready; "imessage" is
refused on a number with no iMessage rail rather than sent as an SMS.
OptionalforceSend an audio attachment as a regular file attachment instead of an iMessage voice message. No effect on standard numbers or non-audio media.
OptionalfromNumber to send from, referenced flexibly: a phone-number id, one of your
numbers in E.164, or a nickname. Provide exactly one of fromNumber or
fromNumberId (enforced by the server).
OptionalfromNumber id to send from. Legacy alternative to fromNumber — provide exactly one.
OptionalgroupA group conversation to send into (see DialClient.listGroups), instead
of a to number. The sending line comes from the group, so the from-number
params are optional here — and a from-number naming a different line is
refused rather than silently overridden.
OptionalmediaMedia attachments (MMS), in send order — max 10 items, 5 MB each.
OptionaltoRecipient phone number, E.164. Provide exactly one of to or groupId.
Message text; optional when media is attached (a media-only send records "").