Skip to content

Instantly share code, notes, and snippets.

@OAyomide
Last active April 24, 2018 19:04
Show Gist options
  • Select an option

  • Save OAyomide/a3eb76e29f7faa2888fe22d48a8c6f70 to your computer and use it in GitHub Desktop.

Select an option

Save OAyomide/a3eb76e29f7faa2888fe22d48a8c6f70 to your computer and use it in GitHub Desktop.
Nested persistent menu in Botpress
persistentMenuItems: [
{
"title":"History",
"type":"nested",
"call_to_actions":[ {
"type":"postback",
"title":"Mail Password History",
"payload":"asdffg"
}, {
"type":"postback",
"title":"Add Email Notification",
"payload":"asdffg"
}
]
},
{
"title":"Privacy",
"payload":"asdffg",
"type":"postback"
}, {
"type":"web_url",
"url":"https://oayomide.com.ng",
"webview_height_ratio":"tall",
"title":"Made with ❤"
}
]
//if you want to know the number of nested buttons you can nest, refer to the messenger docs on persisten menu
// https://developers.facebook.com/docs/messenger-platform/send-messages/persistent-menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment