Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Current »

Sends a message in the chat room.

Parameters:

Name

Mandatory

Type

Description

text

YES

STRING

Text to send

Returns:

Type

Description

JS Promise

A Javascript Promise that returns the message id that has been sent

Example:

contact.sendMessage("Hello world!").then(
  function(msgid){
    console.log("Message sent. ID [" + msgid + "]");
  }
).catch(
  function (err) {
    console.log("[SEND MESSAGE] [ERROR]", err);
  }
);
  • No labels