Send WhatsApp message or attachment
Input
kind requiredWhat to send: a text, an attached file of that kind, or a saved contact's card.
text optionalThe message text, for kind text.
phone optionalRecipient phone in international format, for a number with no chat yet, e.g. "+33 6 12 34 56 78" or "0033612345678". Confirm the number with the user before sending. Give this or `chatId`.
chatId optionalThe chat to send to, as get_inbox returns it in `chatId`. Give this or `phone`.
caption optionalOptional caption for an image, video or document.
dry_run optionalWhen true, everything runs up to the send and stops: the chat is opened and checked, the text typed or the file accepted by WhatsApp's editor, the contact found. Nothing is sent.
filename optionalName the file is sent under, e.g. report.pdf. WhatsApp shows it on documents.
attachment optionalThe file to send, for kind image, video or document.
contactName optionalSaved name of the contact whose card to send, exactly as the address book shows it, for kind contact.
Output
kind requiredsent requiredTrue once WhatsApp's server acknowledged the message. False on a dry run.
chatId requiredThe chat the message went to.
at optionalWhen it was sent, ISO datetime.
id optionalThe new message's id, usable by delete_message, react_to_message and the other message scripts. Null on a dry run.
status optionalDelivery status when the run ended.
dry_run optionalrecipient optionalChat title, as the chat list shows it.
account_used optionalPhone number of the WhatsApp account that sent it, read from the live session.
