Chat Message
A context representing a chat message. Typically used to send the message or to pre-populate a message for sending.
Schema
https://github.com/finos/FDC3/tree/main/schemas/context/chatMessage.schema.json
Type
fdc3.chat.message
Properties
chatRoom
Reference: chatRoom
Example Value:
{
"type": "fdc3.chat.room",
"providerName": "Symphony",
"id": {
"streamId": "j75xqXy25NBOdacUI3FNBH"
}
}
message
Reference: message
Example Value:
{
"type": "fdc3.message",
"text": {
"text/plain": "Hey all, can we discuss the issue together? I attached a screenshot"
},
"entities": {
"0": {
"type": "fdc3.fileAttachment",
"data": {
"name": "myImage.png",
"dataUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII"
}
}
}
}
Example
{
"type": "fdc3.chat.message",
"chatRoom": {
"type": "fdc3.chat.room",
"providerName": "Symphony",
"id": {
"streamId": "j75xqXy25NBOdacUI3FNBH"
}
},
"message": {
"type": "fdc3.message",
"text": {
"text/plain": "Hey all, can we discuss the issue together? I attached a screenshot"
},
"entities": {
"0": {
"type": "fdc3.fileAttachment",
"data": {
"name": "myImage.png",
"dataUri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII"
}
}
}
}
}