bottender-form
An experimental package for handling conversational form with Bottender.
Installation
npm install bottender-form
Usage
const middleware = ;const form = ; const handleForm = ; bot;
Options
name
text
shouldStart
Default: () => false
.
shouldStop
Default: () => false
.
retryMessage
Default: Validation failed. Please try again.
.
retryTimes
Default: 3
.
didFinish
Default: () => {}
.
Step
question
text | async context => void
stateKey
text
validation
text => boolean | async text => boolean
map
text => any
License
MIT © Yoctol