broadcast-chatfuel

1.1.2 • Public • Published

broadcast-chatfuel

Simple package to post broadcast chatfuel

How to install?

npm install broadcast-chatfuel

How 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)

Readme

Keywords

none

Package Sidebar

Install

npm i broadcast-chatfuel

Weekly Downloads

0

Version

1.1.2

License

ISC

Unpacked Size

7.93 kB

Total Files

13

Last publish

Collaborators

  • jakenl5