ืืืืขืช ืืงืกื ืืืฆืืช ืื ืืืืขื ืขื URL#
ืืืง ืื ืืชืืจ ืืช ืคืืจืื ืืืืืืงื ื-messageData ืฉื ื-webhook ืื ืื ืก ืขืืืจ ืืืืขืช ืืงืกื ืืืฆืืช ืขื URL. ืืชืืืืจ ืืคืืจืื ืืืืื ืฉื ื-webhooks ืื ืื ืกืื, ืขืืื ื ืืืืง ืืืืขืืช ืืืฆืืืช.
ืืื ืืงืื webhooks ื ืื ืกืื ืืกืื ืื, ืฉื ื ืืชื ืืื ืืืืื ืืืืืื ืืืชืงืืื:
typeWebhook = outgoingMessageReceived || outgoingAPIMessageReceived
messageData.typeMessage = extendedTextMessage
ืืืืจืช ืืืคืข (instance)
ืืื ืืงืื ืืชืจืืืช ื ืื ืกืืช ืขื ืืืืขืืช ืืงืกื ืืืจืืืืช, ืืฉ ืืืคืขืื ืืช ืืืืืจืืช ืืืืฆืขืืช ืืืช ืืืืคืฉืจืืืืช ืืืืืช:
-
ืืืืฆืขืืช ืืงืื ืกืืื ืืคืขืืื ืืช ืืืืืจืืช
Receive notifications about messages sent from API,Receive notifications about messages sent from the phoneื-Receive notifications about edited messages. -
ืืืืฆืขืืช ืฉืืืช SetSettings ืืคืขืืื ืืช ืืืืืจืืช
outgoingAPIMessageWebhook,outgoingMessageWebhookื-editedMessageWebhook.
Webhook#
ืคืจืืืจื Webhook#
ืคืจืืืจื ืืืืืืงื messageData
| Parameter | Type | Description |
|---|---|---|
typeMessage | string | ืกืื ื-webhook ืืืืฆื. ืขืืืจ ืืืืขืืช ืืกืื ืื, ืืคืจืืืจ ืืงืื ืืช ืืขืจื extendedTextMessage |
extendedTextMessageData | object | ืืืืืืงื ืืืืข ืขื ืืงืืฉืืจ ืื ืื ืก ืขื ืืื-ืืืื |
quotedMessage | object | ืืืืืืงื ืืืืข ืขื ืืืืืขื ืืืฆืืืืช. ืงืืื ืจืง ืื ืืืืืขื ืขืฆืื ืืื ืฆืืืื |
ืคืจืืืจื ืืืืืืงื extendedTextMessageData
| Parameter | Type | Description |
|---|---|---|
text | string | ืืงืกื ืืงืืฉืืจ ืื ืืงืกื ืจืืื |
description | string | ืชืืืืจ ืืงืืฉืืจ, ืืืื ืืืืืช ืจืืง |
title | string | ืืืชืจืช ืืงืืฉืืจ, ืืืืื ืืืืืช ืจืืงื |
containsAutoReply | boolean | ืืื ืืืืืขื ืืืืื ืชืฉืืื ืืืืืืืืช (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
mediaType | string | ืกืื ืืืืื ืฉื ืืืืืขื, ืืืืืื "IMAGE" (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
showAdAttribution | boolean | ืืื ืืฉ ืืืฆืื ืืช ืคืจืื ืืคืจืกืืืช (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
sourceId | string | ืืืื ืืคืจืกืืืช (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
sourceType | string | ืกืื ืืืงืืจ, ืืืืืื "ad" (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
sourceUrl | string | ืืชืืืช ื-URL ืฉื ืืคืจืกืืืช (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
conversionSource | string | ืืืงืืืืฆืืืช ืืืืืขื (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
entryPointConversionApp | string | ืืงืืจ ืืืืืขื (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
jpegThumbnail | string | ืชืฆืืื ืืงืืืื ืฉื ืชืืื ื ืืงืืืื base64, ืืืืื ืืืืืช ืืกืจื |
thumbnailUrl | string | ืืชืืืช ื-URL ืฉื ืชืฆืืื ืืงืืืื ืฉื ืชืืื ื (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
isForwarded | boolean | ืืื ืืืืืขื ืืืขืืจื, ืืงืื ืืช ืืขืจืืื true/false |
forwardingScore | integer | ืืกืคืจ ืืืขืืจืืช ืฉื ืืืืืขื |
previewType | string | ืกืื ืืชืฆืืื ืืืงืืืื (ืจืง ืืืืืขืืช ืคืจืกืืืช) ืืขืจื previewType:None ืืืฆื ืืฉืืืืฉ |
ctwaClid | string | ืืืื ืืืจื ืฉื "ืืืืฆื ืืืืืืกืืค" ืืคืจืกืืืช. ืืฉืืฉ ืืงืืฉืืจ ืืฉืืื ืืงืืคืืื ืืคืจืกืืืช (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
automatedGreetingMessageShown | boolean | ืืฆืืื ืื ืืืฉืชืืฉ ืืืฆืื ืืืืขืช ืืจืื ืืืืืืืืช (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
sourceApp | string | ืืืคืืืงืฆืื ืฉืืื ื ืืืื ืืช ืืืื ืืจืืงืฆืื ืขื ืืืืืกืืค: ืืืืืื, Facebook, Instagram, ืื ืืคืืืงืฆืืืช Meta ืืืจืช. (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
originalImageUrl | string | ืืงืืฉืืจ ืืืงืืจื ืืชืืื ื ืืืฉืืืืช ืืคืจืกืืืช. (ืจืง ืืืืืขืืช ืคืจืกืืืช) |
ืคืจืืืจื ืืืืืืงื quotedMessage
| Parameter | Type | Description |
|---|---|---|
stanzaId | string | ืืืื ืืืืืขื ืืืฆืืืืช |
participant | string | ืืืื ืืฉืืื ืฉื ืืืืืขื ืืืฆืืืืช |
typeMessage | string | ืกืื ืืืืืขื ืืืฆืืืืช |
ืฉืืจ ืืฉืืืช ืืชืืืืื ืืืชืื ืืกืื ืืืืืขื ืืืฆืืืืช ืืืืื ืืฉืืืช ืฉื ืืืืืขืืช ืื ืื ืกืืช ืืืชืืืจืื ืืืืง ืืืืขืืช ืืืฆืืืช
Webhook body example#
Advertising outgoing message of target ad webhook body example#
{
"typeWebhook": "outgoingMessageReceived",
"idMessage": "3AC3BB68475D6EC5BBD1",
"instanceData": {
"idInstance": 1101000001,
"wid": "79876543210@c.us",
"typeInstance": "whatsapp"
},
"timestamp": 1785992892,
"senderData": {
"chatId": "71234567890@c.us",
"sender": "79876543210@c.us",
"senderName": "John",
"senderContactName": "John Doe",
"chatName": "Jane"
},
"messageData": {
"typeMessage": "extendedTextMessage",
"extendedTextMessageData": {
"text": "Hello! I would like to place an order.",
"description": ":thinking_face:Thinking about what to choose today?\n\Chat with clients in the best messenger on Earth.\nSales managers are ready to answer you.\n:mailto: support@green-api.com",
"title": "Write to us",
"previewType": "None",
"jpegThumbnail": "",
"forwardingScore": 0,
"isForwarded": false,
"containsAutoReply": false,
"ctwaClid": "Afh6oztQClFhp ... bjQ",
"greetingMessageBody": "Hello! We are happy to help you!",
"mediaType": "VIDEO",
"showAdAttribution": true,
"automatedGreetingMessageShown": true,
"sourceId": "120252186701100169",
"sourceType": "ad",
"sourceApp": "instagram",
"sourceUrl": "https://www.instagram.com/p/187 ... xWK/",
"originalImageUrl": "https://instagram.ftse3-2.fna.fbcdn.net/ ... =6A79CE3D",
"entryPointConversionApp": "instagram",
"thumbnailUrl": "https://instagram.ftse3-2.fna.fbcdn.net/ ... =6A79CE3D"
}
}
}