Skip to content

Outgoing reaction message#

This section describes messageData object incoming webhook format for outgoing reaction 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

messageData.typeMessage = reactionMessage

Configuring an instance

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

  1. Through console enable the setting Get notifications about messages sent from the phone

  2. Through the SetSettings method enable the setting outgoingMessageWebhook

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: reactionMessage
extendedTextMessageData object Outgoing reaction message data object
quotedMessage object Quoted message data object. The message the correspondent has reacted to

extendedTextMessageData object parameters

Parameter Type Description
text string Reaction (emoji) to the message

quotedMessage object parameters

Parameter Type Description
stanzaId string quoted message id
participant string quoted message sender's 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": 7103000000,
    "wid": "79876543210@c.us",
    "typeInstance": "whatsapp"
  },
  "timestamp": 1588091580,
  "idMessage": "F7AEC1B7086ECDCDB825",
  "senderData": {
    "chatId": "79001234567@c.us",
    "chatName": "Jane",
    "sender": "79876543210@c.us",
    "senderName": "John",
    "senderContactName": "John Doe"
  },
  "messageData": {
    "typeMessage": "reactionMessage",
    "extendedTextMessageData": {
      "text": "👍"
    },
    "quotedMessage": {
      "stanzaId": "46618B98B3B9DF50F123456789123456",
      "participant": "79876543210@c.us"
    }
  }
}

Reaction-message from group chat webhook body example#

{
    "typeWebhook": "outgoingMessageReceived",
    "instanceData": {
        "idInstance": 7103000000,
        "wid": "79876543210@c.us",
        "typeInstance": "whatsapp"
    },
    "timestamp": 1732268220,
    "idMessage": "2D9D6721A977D36924E44CA",
    "senderData": {
      "chatId": "120363369140947676@g.us",
      "chatName": "Group",
      "sender": "79876543210@c.us",
      "senderName": "John",
      "senderContactName": "John Doe"
  },
  "messageData": {
    "typeMessage": "reactionMessage",
    "extendedTextMessageData": {
      "text": "👍"
    },
    "quotedMessage": {
      "stanzaId": "46618B98B3B9DF50F123456789123456",
      "participant": "79876543210@c.us"
    }
  }
}