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