Quoted message#
This section describes messageData
object incoming webhook format for incoming quoted message. For a description of the general format of incoming webhooks, refer to Incoming messages section.
To get incoming webhooks of this type, two conditions must be true:
typeWebhook
= incomingMessageReceived
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:
-
Through console enable the setting
Get notifications about incoming messages and files
-
Through the SetSettings method enable the setting
incomingWebhook
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 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": "incomingMessageReceived",
"instanceData": {
"idInstance": 7103000000,
"wid": "70009876543@c.us",
"typeInstance": "whatsapp"
},
"timestamp": 1588091580,
"idMessage": "F7AEC1B7086ECDC7E6E45923F5EDB825",
"senderData": {
"chatId": "79001234567@c.us",
"sender": "79001234567@c.us",
"senderName": "John",
"senderContactName": "John Doe"
},
"messageData": {
"typeMessage": "quotedMessage",
"extendedTextMessageData": {
"text": "Quoting this",
"stanzaId": "46618B98B3B9DF50F123456789123456",
"participant": "70009876543@c.us"
}
}
}