简体   繁体   English

如何在 Teams 中触发自适应卡片的信息或错误横幅

[英]How to Trigger Info or Error Banner for Adaptive Card in Teams

So I was hoping to trigger an info/error banner for Adaptive Card in Teams, how?所以我希望在 Teams 中触发自适应卡的信息/错误横幅,如何?

在此处输入图像描述

Adaptive Card button click submit request completion message appears in Adaptive Cards while sending a response to the bot.向机器人发送响应时,自适应卡按钮单击提交请求完成消息出现在自适应卡中。 The message can be of two types, error or success :消息可以有两种类型,错误或成功

Error: When a response sent to the bot is unsuccessful, Something went wrong, Try again message appears.错误:当发送给机器人的响应不成功时,出现问题,出现重试消息。

Success: When a response sent to the bot is successful, Your response was sent to the app message appears.成功:当发送到机器人的响应成功时,将显示您的响应已发送到应用程序消息。

If you don't want to display the success message, set the attribute hide to true in the msTeams feedback property.如果您不想显示成功消息,请在 msTeams反馈属性中将属性hide设置为true

Reference doc: https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/conversation-messages?tabs=dotnet#form-completion-feedback参考文档: https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/conversation-messages?tabs=dotnet#form-completion-feedback

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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