/
SendLink
SendLink
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 |
replyTo | no | string | Message ID you are replying to |
Returns:
Type | Description |
---|---|
JS Promise | A Javascript Promise that returns 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);
}
);
, multiple selections available,
Related content
sendMessage
sendMessage
More like this
joinContact
joinContact
More like this
getContactTranscriptByChatID API
getContactTranscriptByChatID API
More like this
getContactByChatID API
getContactByChatID API
More like this
SendMultimediaMessage
SendMultimediaMessage
More like this
getTranscriptByChatID API
getTranscriptByChatID API
More like this