Sends a link in the chat room. The url will be validated before send.
Parameters:
Name | Mandatory | Type | Description |
---|---|---|---|
url | YES | STRING | Url to send |
Returns:
Type | Description |
---|---|
JS Promise | A Javascript Promise that return the message id that has been sent |
Example:
contact.SendLink( "https://www.google.com/").then ( function (msgid) { console.log("Link sent. ID [" + msgid + "]"); } ).catch( function (err) { console.log("[SEND LINK] [ERROR]", err); } );