Skip to content

Quoted message#

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

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

typeWebhook = outgoingMessageReceived || outgoingAPIMessageReceived

messageData.typeMessage = quotedMessage

Configuring an instance

To receive incoming notifications about quoted 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 and Get notifications about messages sent from the phone

  2. Through the SetSettings method enable the setting outgoingMessageWebhook and outgoingAPIMessageWebhook

Webhook#

Webhook parameters#

messageData object parameters

Parameter Type Description
typeMessage string Sent message type. For messages of this type, the parameter takes on the value quotedMessage
extendedTextMessageData object Text message data object

extendedTextMessageData object parameters

Parameter Type Description
text string Text message below quoted
stanzaId string Quoted message ID
participant string Recipient chat ID

Webhook body example#

{
    "typeWebhook": "outgoingMessageReceived",
    "instanceData": {
    "idInstance": 7103000000,
    "wid": "79876543210@c.us",
    "typeInstance": "whatsapp"
    },
    "timestamp": 1588091580,
    "idMessage": "F7AEC1B7086ECDC7EB825",
    "senderData": {
    "chatId": "79001234567@c.us",
    "sender": "79876543210@c.us",
      "chatName": "Jane",
    "senderName": "John",
    "senderContactName": "John Doe"
    },
    "messageData": {
        "typeMessage": "quotedMessage",
        "extendedTextMessageData": {
            "text": "Quoting this",
            "stanzaId": "46618B98B3B9DF50F123456789123456",
            "participant": "70009876543@c.us"
        }
    }
}