Closed ianhayes closed 7 years ago
TypeError: Cannot read property 'forEach' of undefined getting thrown when using
TypeError: Cannot read property 'forEach' of undefined
let getStartedPayloads = [ { payload: 'click_on_welcome_button' } ] bot.setGetStartedButton(getStartedPayloads, (err) => { if (err) console.log( err ); })
The issue is from line 183 on index.js. The _handleMessage method was looking for messages but this only exists in user sent messages.
_handleMessage
messages
Also interested in this.
TypeError: Cannot read property 'forEach' of undefined
getting thrown when usingThe issue is from line 183 on index.js. The
_handleMessage
method was looking formessages
but this only exists in user sent messages.