Hero card buttons are represented as bullets after deploying it to azure

China☆狼群 提交于 2019-12-08 04:01:50

问题


I have developed a chat bot in node.js and deployed it to Microsoft Azure. I have done debugging locally using bot framework channel emulator and everything was perfect along with two buttons which I have added to a Hero Card. But after deploying the same code to Azure, those two buttons were converted to two bullets.

Code:

bot.dialog('/secondaryTrigger', [
  function (session) {
  var hCard = new builder.HeroCard(session)
          .title('Hi '+session.userData.splittedName[0]+'!')
        .text('Select Your Billability Please')
          .buttons([

              builder.CardAction.imBack(session, 'Billable', 'Billable'),
              builder.CardAction.imBack(session, 'Non-Billable', 'Non-Billable')
          ]);

          var msg = new builder.Message(session).attachments([hCard]);
          session.send(msg);
          session.beginDialog('/billability');
      }]);

References:

While debugging locally

After Deploying to Azure

I can not find the justification/reason behind it. Anybody faced the same issue?

来源:https://stackoverflow.com/questions/44826645/hero-card-buttons-are-represented-as-bullets-after-deploying-it-to-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!