使用自适应卡时如何删除聊天机器人上的对话框

时间:2020-10-19 06:25:20

标签: c# microsoft-teams adaptive-cards microsoft-bot-framework

我在聊天机器人上实现了活动卡,但是我不知道如何获得响应。 我试过下面的代码,似乎工作正常。但是当我将选项输入为“”时,我无法消除显示为“次”的行,因为TEAMS显示错误。如何从编码中删除此行。

var attachments = new List<Attachment>();
// Reply to the activity we received with an activity.
var reply = MessageFactory.Attachment(attachments);
// Display an Adaptive Card
reply.Attachments.Add(Cards.CreateAdaptiveCardAttachment(tytle + msg,list1));
// Send the card(s) to the user as an attachment to the activity
await stepContext.Context.SendActivityAsync(reply, cancellationToken);
var promptOptions = new PromptOptions { Prompt = MessageFactory.Text("以上") };
return await stepContext.PromptAsync(nameof(ChoicePrompt), promptOptions, 
[![enter image description here][1]][1]cancellationToken);

0 个答案:

没有答案