0

我是 Claudia Js 的 lambda 新手,当我在 Messenger 聊天机器人中单击“同意”时,我无法弄清楚如何进行自定义回复,然后它会显示一个文本,然后是另一个按钮 这是我的示例代码:

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();
  }
});

谢谢任何愿意回答的人

4

0 回答 0