Message Model

Property nameTypeDescription
_idstringID of the message. Generated automatically by the server after message creation.
created_atdatetimeDate & time when a record was created, filled automatically.
updated_atdatetimeDate & time when a record was updated, filled automatically.
chat_dialog_idstringID of dialog to which current message is connected. Generated automatically by the server after message creation.
messagestringMessage body.
date_senttimestampMessage date sent.
sender_idintMessage sender ID.
recipient_idintMessage recipient ID.
readint(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 intArray of users' IDs who read messages. Works only for type=2 (GROUP) dialog.
delivered_ids[]array of intArray of users' IDs who received the messages.
attachments[]array of objectsEach 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}anyName 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.