Skip to content

Edited message#

This section describes messageData object incoming webhook format for outgoing edited message. For a description of the general format of incoming webhooks, refer to Outgoing messages section.

To get incoming webhooks of this type, three conditions must be true:

typeWebhook = outgoingMessageReceived || outgoingAPIMessageReceived

editedMessageWebhook = Yes

messageData.typeMessage = editedMessage

Configuring an instance

To receive incoming notifications about extended text messages, you need to enable the settings using one of the following options:

  1. Through console enable the settings Get notifications about messages sent from API, Get notifications about messages sent from the phone and editedMessageWebhook.

  2. Through the SetSettings method enable the settings outgoingAPIMessageWebhook, outgoingMessageWebhook and editedMessageWebhook.

Webhook#

Webhook parameters#

messageData object parameters

Parameter Type Description
typeMessage string incoming webhook type. For messages of this type, the parameter takes on the value editedMessage
editedMessageData object Text edited message data object

editedMessageData object parameters

Parameter Type Description
textMessage string Text editeted message
stanzaId string Quoted message id

The rest of the fields are filled depending on the type of the quoted message and are identical to the fields of outgoing messages described in Outgoing messages section

Webhook body example#

{
    "typeWebhook": "outgoingMessageReceived",
    "instanceData": {
        "idInstance": 1101000001,
        "wid": "79876543210@c.us",
        "typeInstance": "whatsapp"
    },
    "timestamp": 1738566656,
    "idMessage": "3U28ABACVPDF65C8B28",
    "senderData": {
        "chatId": "71234567890@c.us",
        "chatName": "Jane",
        "sender": "79876543210@c.us",
        "senderName": "John",
        "senderContactName": "John Doe"
    },
    "messageData": {
        "typeMessage": "editedMessage",
        "editedMessageData": {
            "textMessage": "Edited message",
            "stanzaId": "3PEAD8EDB7A9D438FF5E"
        }
    }
}