Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Mandatory

Type

Description

text

Status
colourRed
titleyes

Status
titlestring

Text to send

replyTo

Status
titleno

Status
titlestring

Message ID you are replying to

Returns:

Type

Description

JS Promise

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

...

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