1.1.2 • Published 7 years ago
broadcast-chatfuel v1.1.2
broadcast-chatfuel
Simple package to post broadcast chatfuel
How to install?
npm install broadcast-chatfuelHow to use?
var broadcast = require('../index')({ botID: '<YOUR-BOT-ID>' , token:'<YOUR-TOKEN>'})
broadcast(options).then(...)Argument
*options: is an object or array of object.
*object:
*userID: userID.
*blockName: name of block chatfuel.
*attributes: an object of many.
Example:
const broadcast = require('../index')({ botID: '<YOUR-BOT-ID>' , token:'<YOUR-TOKEN>'})
broadcast({
userID: '<UID>',
blockName: 'test_broadcast',
attributes:{
key1: 'Hello it\'s test message number 0'
}
}).then(console.log)