Name | Type | Description | ||||
---|---|---|---|---|---|---|
_id |
| Internal object identifier | ||||
room |
| Chat unique identifier | ||||
messages |
|
Array containing chat multimedia messages
id [message object]
Status | ||
---|---|---|
|
message unique identifier
img
Status | ||
---|---|---|
|
Base64 of the image
document
Status | ||
---|---|---|
|
Base64 of the document
caption
Status | ||
---|---|---|
|
file caption
fileName
Status | ||
---|---|---|
|
Contains name of the document/image message
documentType
Status | ||
---|---|---|
|
Document format
id [user object]
Status | ||
---|---|---|
|
user unique identifier
isAgent
Status | ||
---|---|---|
|
Indicates if the person who sent the message is an agent
Name | Type | Description | ||||
---|---|---|---|---|---|---|
_id |
| Internal object identifier | ||||
room |
| Chat unique identifier | ||||
messages |
| Array containing multimedia chat messages. See Multimedia Message Object for more details |
...
Code Block | ||
---|---|---|
| ||
{ "_id" : ObjectId("61f11d7cd42454470cb22dab"), "room" : "CHAT_DEFAULT_a098a0bc-b34c-452c-829c-1b03aa7a67ee", "id" : "16daf4d4-a77f-406f-ab75-0475f510bc95", "content" : { "document" : { "$binary" : "UEsDBBQABgAIAAAAIQDMkURCrQEAAL0HAAATAA....", "$type" : "00" }, "caption" : "", "fileName" : "WHATSAPP-TEMPLATE-AD-v09.xlsx", "documentType" : "xlsx", "user" : { "id" : "USER_gverde1@acd.enghouse.com", "isAgent" : true } } } |
Audio message
Name | Type | Description | ||||
---|---|---|---|---|---|---|
audio |
| Base64 of the audio | ||||
fileName |
| Contains name of the image message | ||||
caption |
| file caption | ||||
documentType |
| Document format | ||||
user |
| Semplified user object containing only user id and isAgent properties of the user who sent the message. |
Video message
video |
| Base64 of the video | ||||
fileName |
| Contains name of the image message | ||||
caption |
| file caption | ||||
documentType |
| Document format | ||||
user |
| Semplified user object containing only user id and isAgent properties of the user who sent the message. |