Namespace: message

QB.chat. message

Methods

staticQB.chat.message.create(params, callback)

modules/chat/qbMessage.js, line 42
Create message.
Name Type Description
params Object Object of parameters.
callback createMessageCallback The callback function.

staticQB.chat.message.delete(id, params, callback)

modules/chat/qbMessage.js, line 92
Delete message(read more).
Name Type Description
id String The message id.
params Object Object of parameters.
callback deleteMessageCallback The callback function.

staticQB.chat.message.list(params, callback)

modules/chat/qbMessage.js, line 22
Get a chat history(read more).
Name Type Description
params Object Object of parameters.
callback listMessageCallback The callback function.

staticQB.chat.message.unreadCount(params, callback)

modules/chat/qbMessage.js, line 121
Get unread messages counter for one or group of dialogs(read more).
Name Type Description
params Object Object of parameters.
callback unreadCountMessageCallback The callback function.

staticQB.chat.message.update(id, params, callback)

modules/chat/qbMessage.js, line 67
Update message(read more).
Name Type Description
id String The message id.
params Object Object of parameters.
Name Type Description
read Number optional Mark message as read (read=1).
delivered Number optional Mark message as delivered (delivered=1).
message String optional The message's text.
callback updateMessageCallback The callback function.