【发布时间】:2016-06-16 14:28:52
【问题描述】:
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);
【问题讨论】:
-
看起来它现在可以在 Mac 版 Skype 上运行。 7.31 版
标签: botframework