...
Name | Type | Description | ||||
---|---|---|---|---|---|---|
id |
| message unique identifier | ||||
messageType |
| Type of the message. Can assume one of the following values: “text”“TEXT” “image”“IMAGE” “document”“DOCUMENT” “link”“LINK” “audio”“AUDIO” “video”“VIDEO” “videoRequestedByAgent” “videoRequestedByCustomer” “videoAccepted” “videoRejected” “videoStarted” “videoEnded” “screenSharingStarted” “screenSharingEnded” “endChat” “leave” | ||||
ts |
| Timestamp of when message was sent | ||||
deliverySuccess |
| Indicates if the message has been succesfully delivered | ||||
deliveryErrorReason |
| In case of delivery failed, describes the error occurred | ||||
replyTo |
| Message ID you are replying to | ||||
content |
| Message content. See message content object for more details. |
...
Name | Type | Description | ||||
---|---|---|---|---|---|---|
caption |
| Message caption | ||||
fileName |
| Contains name of the document/image message | ||||
documentType |
| Document format | ||||
user |
| Semplified user object containing only user id and isAgent properties of the user who sent the message. |
...
Code Block | ||
---|---|---|
| ||
{ "data" : { "replyTo" : "", "id" : "m_dXya7ckVUHyYxQHcQrrdgT2MVSImQFjQ7aCDxA_Mxf7AeR9GMI0vDs2dy2PKgTjE24tQrJImLWYnR5hgtpt7Uw", "messageType" : "VIDEO", "content" : { "caption" : "", "fileName" : "video.mp4", "documentType" : "mp4", "user" : { "id" : "4149729381806003", "isAgent" : false } }, "ts" : 1643207226322.0, "deliverySuccess" : true, "deliveryErrorReason" : "" }, "_id" : ObjectId("61f15a4c932c660c83d5e229"), "room" : "CHAT_DEFAULT_06b6ace1-a923-4657-876b-c6432729610d" } |
Audio message:
caption |
| Message caption | ||||
fileName |
| Contains name of the document/image message | ||||
documentType |
| Document format | ||||
user |
| Semplified user object containing only user id and isAgent properties of the user who sent the message. |
...