简体   繁体   中英

Cards and Choices not displayed in Skype for business (Bot Framework)

I recently add the skype for business channel to my bot, however Choices prompts and Hero Cards are not displayed in the message

   intents.matches(/^test/, [
  function (session) {
    const leaves = ['Holiday', 'Medical', 'Meeting', 'Seminar'];
    builder.Prompts.choice(session, 'Please select a leave request', leaves, { listStyle: builder.ListStyle.button });
  },
  function (session, args) {
    session.endDialog(`You are taking a ${args.response.entity} leave`);
  }
]);

The Skype for Business channel for Bot Framework is currently under Developer Preview.

Per the official documentation :

Cards and buttons : Skype for Business does not support cards and buttons in the Developer Preview. For the Developer Preview, cards and buttons are not shown to the user if they are sent by a bot. Cards and buttons fallback to text support will be added soon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM