Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Type

Description

audio

Status
titlestring

Base64 of the audio

fileName

Status
titlestring

Contains name of the image message

caption

Status
titlestring

file caption

documentType

Status
titleSTRING

Document format

user

Status
titleobject

Semplified user object containing only user id and isAgent properties of the user who sent the message.

Example

Code Block
languagejson
{
    "_id" : ObjectId("61f158ee932c660c83d5e201"),
    "room" : "CHAT_DEFAULT_24ec70f1-b92d-44c4-94ad-49bcd15986ea",
    "id" : "m_JLR7O2EHIE6d3fiskFBiqz2MVSImQFjQ7aCDxA_Mxf6hm6TYUaJKXiEqfYgCX8WKxriZux06OzPB8XLZa8yNKA",
    "content" : {
        "caption" : "",
        "fileName" : "audioclip-1643206881000-5760.mp4",
        "documentType" : "mp4",
        "user" : {
            "id" : "4149729381806003",
            "isAgent" : false
        },
        "audio" : { "$binary" : "AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAABvJ......", "$type" : "00" }
    }
}

Video message

video

Status
titlestring

Base64 of the video

fileName

Status
titlestring

Contains name of the image message

caption

Status
titlestring

file caption

documentType

Status
titleSTRING

Document format

user

Status
titleobject

Semplified user object containing only user id and isAgent properties of the user who sent the message.