Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot throwing undefined 'forEach' on functions without parsed.entry[0].messaging[0] #77

Closed
ianhayes opened this issue Sep 19, 2017 · 1 comment

Comments

@ianhayes
Copy link

ianhayes commented Sep 19, 2017

TypeError: Cannot read property 'forEach' of undefined getting thrown when using

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.

@danielnjoo
Copy link

Also interested in this.

@eXeDK eXeDK closed this as completed Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants