-
Notifications
You must be signed in to change notification settings - Fork 213
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
Quick replies not handled correctly as postbacks #55
Comments
As mentioned here: https://developers.facebook.com/docs/messenger-platform/send-api-reference/quick-replies |
Then how do you get the payload parameter ? |
@henricazottes Did you solve this? |
I handled it as a normal message, still don't know what the payload is used for :/ |
In case someone has a similar problem. Message update I get from facebook on quickreply click:
So, all you should do is check for a quick_reply field in your message object |
When a Quick Reply is tapped, a text message will be sent to your webhook Message Received Callback. The text of the message will correspond to the title of the Quick Reply. The message object will also contain a field named quick_reply containing the payload data on the Quick Reply. so quick reply payload will be like message.quick_reply.payload |
When the user clicks on a quick reply button this triggers a bot.on('message', .....) handler whereas this should probably trigger a bot.on('postback', ....) instead?
The text was updated successfully, but these errors were encountered: