小编Kis*_*lan的帖子

富网卡附件未在网络聊天或Skype上显示

富卡附件未显示在网络聊天或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)

botframework

6
推荐指数
1
解决办法
600
查看次数

标签 统计

botframework ×1