Rich Card附件未显示在网络聊天或Skype中 [英] Rich Card attachments are not showing on web chat or Skype

查看:89
本文介绍了Rich Card附件未显示在网络聊天或Skype中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Rich Card attachments are not showing on web chat or Skype, but showing fine on the emulator. The attachment contains the correct data and attributes and works fine if I use ContentType + ContentURL. But if I use rich card attachments, they don't show up on Web Chat or Skype. This is my code. Please help.

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);

推荐答案

既然Bot Framework V3已发布,现在应该使用最新的Skype客户端解决此问题.

This should be resolved now with latest Skype clients now that Bot Framework V3 has been released.

这篇关于Rich Card附件未显示在网络聊天或Skype中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆