Skip to content

Sent reaction message#

This section describes the format of the incoming notification messageData object for a sent reaction message. For a description of the general format of incoming notifications, refer to the Sent messages section.

To receive incoming notifications of this kind, two conditions must be met:

  • typeWebhook = outgoingMessageReceived
  • messageData.typeMessage = reactionMessage

Instance settings

To receive incoming notifications about sent messages, you need to enable the settings in one of the ways presented:

  1. Through the console, enable the Receive notifications about messages sent from the phone and Receive notifications about messages sent through the API settings (additionally Receive notifications about the statuses of sent messages to receive notifications about the statuses of a sent message)

  2. Through the SetSettings method, enable the outgoingMessageWebhook and outgoingAPIMessageWebhook settings (additionally outgoingWebhook to receive notifications about the statuses of a sent message)

Notification#

Notification format#

Fields of the messageData object

Parameter Type Description
typeMessage string Type of the sent message. For messages of this type the field takes the value: reactionMessage
extendedTextMessageData object Object with data about the sent reaction message

Fields of the extendedTextMessageData object

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

The remaining fields are filled in depending on the type of the quoted message and are identical to the fields of the sent messages described in the Sent messages section

Notification body example#

{
  "typeWebhook": "outgoingMessageReceived",
  "instanceData": {
    "idInstance": 4100000000,
    "wid": "79876543210@c.us",
    "typeInstance": "telegram"
  },
  "timestamp": 1732268220,
  "idMessage": "1763115112345",
  "senderData": {
    "chatId": "-10000000000000",
    "chatType": "supergroup",
    "sender": "1000000001",
    "chatName": "Faraway Kingdom",
    "senderName": "Ivan",
    "senderType": "user",
    "senderContactName": "Ivan Tsarevich",
    "senderPhoneNumber": 79876543210
  },
  "messageData": {
    "typeMessage": "reactionMessage",
    "extendedTextMessageData": {
      "text": "🥰"
    },
    "quotedMessage": {
      "stanzaId": "1770368237000",
      "participant": "651508656"
    }
  }
}