where do I find this function ...
bp.dm.replyToEvent(...
in the documentation?
1. need to add new line in the subtitle.
and have some question about the hooks too....
current test code....
const carouselItems = [
{
title: 'Tourz',
subtitle: 'Take a tour of our /n/r \n\r
\r\n platform',
actions: [
{
action : 'postback',
type: 'string',
label: '-',
value: 'start_tour'
}
]
},
{
title: 'Helpxx2',
subtitle: 'Get help with our platform',
actions: [
{
action : 'postback',
type: 'string',
label: '-',
value: 'contact_support'
}
]
},
{
title: 'Notes',
subtitle: 'Access your saved notes',
actions: [
{
action : 'postback',
type: 'string',
label: '-',
value: 'view_notes'
}
]
}
]
// Send the carousel
bp.dm.replyToEvent(event, {
type: 'carousel',
items: carouselItems
})
// Send the quick replies
bp.dm.replyToEvent(event, {
type: 'choice',
text: 'please choose one',
options: [
{ label: 'menu', value: 'menu' },
{ label: 'test', value: 'test' }
]
})