File size: 850 Bytes
252bb4a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | Fix the following issue:
Add support for content_type: "location" and "image_url" on Quick Replies
We need to refactor the `_formatQuickReplies` method to support an object with an open format. New types of quick replies format added since we implemented this methods are:
Location:
```
{
"content_type":"location",
}
```
Text with Image:
```
{
"content_type":"text",
"title":"Green",
"payload":"DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_GREEN",
"image_url":"http://petersfantastichats.com/img/green.png"
}
```
But more formats will likely be added in the future so we should support whatever object the user sends (or auto-format like we do now if it's a string).
Facebook Docs: https://developers.facebook.com/docs/messenger-platform/send-api-reference/quick-replies |