Versions Compared

Key

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

...

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);
  }
);