I'm a newbie in Claudia Js with lambda and I can't figure out how to have a custom reply when I click Agree in messenger chat bot then it will show a text then followed by another button Here is my sample code:
module.exports = botBuilder(message => {
if (message.type === 'facebook') {
return new fbTemplate.Button('Would you like to send your Health Declaration now?')
.addButton('Yes', 'YES')
.addButton('No', 'NO')
return new fbTemplate.button('By clicking the AGREE button below, you are giving consent to this company.')
.addButton('Agree', 'AGREE')
.addButton('Disagree', 'DISAGREE')
.get();
}
});
Thank you for anyone who will answer