富卡附件未显示在网络聊天或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);
Run Code Online (Sandbox Code Playgroud)
从机器人框架页面:
重要提示:您应该使用 Skype Web 应用程序的开发人员版本来测试 Skype 机器人,直到 7 月底更新的桌面和移动 Skype 应用程序可用。https://web.skype.com/en/?ecsoverride=developer
| 归档时间: |
|
| 查看次数: |
600 次 |
| 最近记录: |