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

Version 1 Next »

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 return the message id that has been sent

Example:

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