Sending a chat message with custom parameters to the Quickblox API involves specifying various details such as the body of the message, date sent, dialog ID, and more. For example:
message: {
body: 'something',
date_sent: 'some date',
dialog_id: 'dialog id',
extension: {
save_to_history: 1,
},
markable: 1,
type: dialog.type === 3 ? 'chat' : 'groupchat',
customParameter: 'this is custom param',
},
To send this message via Quickblox, one would use the following code:
QB.chat.send(jidOrOpponentId, message);
However, it seems that when receiving this message on another browser, the custom parameter may not be included. This raises the question - should the custom parameter be returned in the response from Quickblox? The documentation mentions custom params but does not clearly explain their purpose or whether they are returned by Quickblox.