The middlewares
const converse = new NewBot()
// ...
converse.use({
sending(input, output, { user, data }, next) {
next()
},
finished(input, { user, data }) {
},
prompt(input, params, { user, data }) {
},
nothing(input) {
}
})Last updated