Charca / bootbot

Facebook Messenger Bot Framework for Node.js
MIT License
974 stars 253 forks source link

Not really an issue, but rather a question #112

Closed unigazer closed 6 years ago

unigazer commented 6 years ago

Hello,

I liked your repo so I decided to try it. Everything was fine overall until I came up to the step where I need to write the logic for "Persistent menu". I was using :

bot.on('payload', (payload, chat) => {...})
// and
bot.on('payload:GET_STARTED_BUTTON', (payload, chat) => {...})

but both of them return TypeError: Cannot read property 'forEach' of undefined on Heroku's log when I click on the "Get started" button or one of the options in the persistent menu.

I understand that it's because that the "Persistent menu" return an array of string, but do you have a hint on where to define them?

unigazer commented 6 years ago

Nevermind, I've found the examples folder.