bright-insurance-69312
05/23/2024, 12:11 PMbright-insurance-69312
05/24/2024, 7:23 PMSelect An option
,
choices: [
{
title: 'YES',
value: 'yes'
},
{
title: 'NO',
value: 'no'
}
],
typing: false
}
const eventDestination = {
channel: event.channel,
target: event.target,
botId: event.botId,
threadId: event.threadId
}
const render = await bp.cms.renderElement('#builtin_single-choice', singleChoice, eventDestination)
console.log(render)
bp.events.replyToEvent(event, render)
this code is solving that.