express-messenger
0.0.4 • Public • Published express-messenger
run your Messenger bot on Express
Installation
$ npm install --save express-messenger
Usage
const messenger = require('express-messenger');
const bodyParser = require('body-parser')
const app = require('express')();
app.post('/',
bodyParser.json(),
messenger()
.use((message, context) => {
switch(context.topic) {
case 'postback.GET_STARTED':
case 'text':
}
})
)
Related Projects
messenger-core – Write-once, run-anywhere Messenger bots.
Sponsor
License
MIT © Andreas Pizsa
/express-messenger/
//
Package Sidebar
Install
Weekly Downloads