Everything described in this file is part of the encrypted message content, so nothing in here affects the client/server interface.
{
"type": "text",
"content": "Moie!",
"attachments": []
}attachments may be null or unset. In both cases, client must treat it like
an empty list.
- In type "text", the
contentfield contains plain text - In type "reaction", the
contentfield contains an emoji
An array of attachment objects like
{
"id": "f8cb093bcbcefc48edc544a5853cc773",
"name": "img2.png",
"mimeType": "image/png",
"encryption": {
"algorithm": "chacha20poly1305-ietf-nonce12prefixed",
"key": "B/lViSzth+5SybaOk6TvE6HGPdQMSCAQs1MMlg2S7AA="
},
"thumbnail": {
"id": "cdd28827b7e17a5c1c83580fcdc6974b",
"mimeType": "image/jpeg",
"width": 200,
"height": 100,
"encryption": {
"algorithm": "chacha20poly1305-ietf-nonce12prefixed",
"key": "wa4WgcueHGJSZ20IACWfj8XVj6g5PWEBFch229l0BY4="
}
}
}with
idused to build the attachment download URL,namethe file name,mimeTypethe file type,conversationKeyIdthe ID of the key used to encrypt this attachment,thumbnaila thumbnail for this attachment (can be null).