Message Model

Property name

Type

Description

_id

string

ID of the message. Generated automatically by the server after message creation.

created_at

datetime

Date & time when a record was created, filled automatically.

updated_at

datetime

Date & time when a record was updated, filled automatically.

chat_dialog_id

string

ID of dialog to which current message is connected. Generated automatically by the server after message creation.

message

string

Message body.

date_sent

timestamp

Message date sent.

sender_id

int

Message sender ID.

recipient_id

int

Message recipient ID.

read

int

(Deprecated) Read message status. Diplayed as read=1 after retiriving by the opponent. Works only for type=3 (PRIVATE) dialog. Remains as read=0 after retiriving for type=2 (GROUP) and type=1 (PUBLIC) dialogs.

read_ids[]

array of int

Array of users' IDs who read messages. Works only for type=2 (GROUP) dialog.

delivered_ids[]

array of int

Array of users' IDs who received the messages.

attachments[]

array of objects

Each attachment object contains 3 required keys:
id - link to file ID in QuickBlox,
type - audio/video/image,
url - link to file in Internet.

{custom_field_N}

any

Name of the custom field. Chat message can be extended with additional fields and contain any other user key-value custom parameters. Can be many 1..N.