简体   繁体   中英

Turn off Adaptive Card response confirmation for MS Teams bot app

Adaptive cards for bots in MS Teams now appear to be displaying a confirmation of "your response was sent to the app" message when a button on the card is clicked.

Is there a way to turn this notification off?

在此处输入图像描述

In a MS Teams if you have your message formatted as Adaptive Card you have different kind of buttons (Actions),

Some of them are resulting with "Your response was sent to the app" some of them not.

We had same issue and found out that if you are using type Action.Submit - it will show this notification, but if you use Action.Execute , it will not.

     ...
    {
      type: 'Action.Execute',
      title: 'My Button',
      data: {
        msteams: {
          type: 'task/submit',
        },
        somePayload: '<data>',
      },
    },
    ....

Hope it'll be helpful to someone stumbled upon the same issue.

This is by design, and cannot be disabled.

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