In the chat object instance there are several methods in order Through the API, any CTLive integrator can, for instance send text messages, link or multimedia content, leave an active chat, terminate a chat for all participant.
Below we list all the available APIs related with a code example.
Send a Text message
Code Block | ||
---|---|---|
| ||
ctlive_contact.sendMessage( text ).then (
function (msgid) {
console.log("Message sent", msgid);
}
);
|