OptionalbodyOptionalchannelWhich channel to send on, for a line that carries more than one (an iMessage number with WhatsApp connected, or a WhatsApp line without calls, which carries SMS and WhatsApp). Omit to use the number's own default, so existing calls are unaffected.
"sms" names the SMS rail on a number without iMessage. "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.
OptionalpollSend a native poll instead of text (iMessage numbers only, one-to-one or
into an iMessage group): a title (1–300 chars) and 2–10 unique options.
Exclusive with body, media and forceAudioFile.
OptionaltoRecipient phone number, E.164. Provide exactly one of to or groupId.
Message text; optional when media is attached (a media-only send records "").