gpt4 book ai didi

botframework - Rich Card 附件未显示在网络聊天或 Skype 上

转载 作者:行者123 更新时间:2023-12-04 16:06:52 28 4
gpt4 key购买 nike

Rich Card 附件未在网络聊天或 Skype 上显示,但在模拟器上显示良好。附件包含正确的数据和属性,如果我使用 ContentType + ContentURL,它可以正常工作。但如果我使用丰富的卡片附件,它们就不会出现在网络聊天或 Skype 上。这是我的代码。请帮忙。

Message reply = context.MakeMessage();
var actions = new List<Microsoft.Bot.Connector.Action>();
actions.Add(new Microsoft.Bot.Connector.Action
{
Title = $"I like it",
Message = $"I like it message"
});
actions.Add(new Microsoft.Bot.Connector.Action
{
Title = $"Show me more",
Message = $"Show me more message"
});
reply.Attachments = new List<Attachment>();
reply.Attachments.Add(new Attachment()
{

Title = p.Title,
TitleLink = p.DetailPageURL,
ThumbnailUrl = p.MediumImage,
Text = p.Title,
Actions = actions,
FallbackText ="The message attachment is not rendering for: " + p.Title

});
await context.PostAsync(reply);
context.Wait(MessageReceived);

最佳答案

从机器人框架页面:

Important:You should test Skype bots using the developer version of the Skype Web App until updated Skype apps for desktop and mobile are available at the end of July. https://web.skype.com/en/?ecsoverride=developer

关于botframework - Rich Card 附件未显示在网络聊天或 Skype 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37862119/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com