shimli-sdk
Use of the Shimli api to send and read messages from the channels available in Shimli (WhatsApp, SMS, Telegram, Facebook Messanger and Instagram)
Link: https://www.shimli.app
Installation
npm i @sheilim/shimli-sdk --save
How is it used?
const shimli = require('@sheilim/shimli-sdk);
(function(){
shimli.config['token'] = "YOUR_TOKEN";
const result = shimli.sendMessage("chat", "Hi!! 👋", "14243962506", "ID_INSTANCE");
if(result.error)
console.log(result.message);
else
console.log(result);
})();
Options
- type - string I could be chat, image, video, audio, location, document, sticker, gif
- body - string Message text or url of the media file to send
- to - string WhatsApp number to which the message will be sent
- instance - string Id of the instance connected to Shimli
- caption - string (optional) Image or video caption
- filename - string (optional) Name of the document to send
- lat - string Required if it is of type location
- lng - string Required if it is of type location