Skip to content

Edited message#

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

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

typeWebhook = incomingMessageReceived

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 setting Get notifications about incoming messages and files and editedMessageWebhook.

  2. Through the SetSettings method enable the setting incomingWebhook and editedMessageWebhook.

Webhook#

Webhook parameters#

messageData object parameters

Parameter Type Description
typeMessage string Received message 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 incoming messages described in Incoming messages section

Webhook body example#

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