Bailey (WhatsApp) icon

Bailey (WhatsApp)

Interact with WhatsApp via Baileys WebSocket API

Actions122

Message → Edit

AI-generated

Summary

Edits a WhatsApp message by sending replacement text for the target message in the specified chat. Provide the recipient JID, message ID, whether the original message was sent by you, and the new text.

Inputs

  • jid (required) — Recipient or group JID, such as 12025551234@s.whatsapp.net or groupid@g.us.
  • messageId (required) — ID of the message to edit.
  • messageFromMe — Whether the target message was sent by you. Defaults to false in the UI; the operation uses true if this value is absent.
  • newText (required) — Replacement text for the edited message.

Output shape

A single item containing the result of the WhatsApp sendMessage call as JSON.

If the call returns null or undefined, the JSON body is an empty object.

Links

Discussion