...
Name | Mandatory | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
text |
|
| Text to send | ||||||||||
replyTo |
|
| Message ID you are replying to |
Returns:
Type | Description |
---|---|
JS Promise | A Javascript Promise that return returns the message id that has been sent |
...
Code Block | ||
---|---|---|
| ||
contact.sendMessage("Hello world!").then(
function(msgid){
console.log("Message sent. ID [" + msgid + "]");
}
).catch(
function (err) {
console.log("[SEND MESSAGE] [ERROR]", err);
}
); |