Edit Message
wa_edit_messageEdit a WhatsApp message you sent. WhatsApp only accepts an edit within about 20 minutes of the original send.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | Yes | the chat the message is in — a phone number or a group/channel JID | |
| text | Yes | the replacement message body | |
| account_id | No | the account, as returned by wa_list_accounts; omit it when the workspace has only one account | |
| message_id | Yes | WhatsApp's id for the message, as returned by wa_send_message |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ok (the operation succeeded) or refused (nothing was done) | |
| refusal | No | present only when status is refused | |
| new_message_id | No | WhatsApp's id for the react/edit/revoke protocol message itself |