Versions Compared

Key

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

Sends a link in the chat room. The url will be validated before send.

Name

Mandatory

Type

Description

url

Status
colourRed
titleyes

Status
titlestring

Url to send

replyTo

Status
titleno

Status
titlestring

Message ID you are replying to

Type

Description

JS Promise

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

Code Block
languagejs
contact.SendLink( "https://www.google.com/").then (
  function (msgid) {
    console.log("Link sent. ID [" + msgid + "]");
  }
).catch(
  function (err) {
    console.log("[SEND LINK] [ERROR]", err);
  }
);