【问题标题】:Rich Card attachments are not showing on web chat or Skype富卡附件未显示在网络聊天或 Skype 上
【发布时间】: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


【解决方案1】:

来自机器人框架页面:

重要提示:您应该使用 Skype Web 应用程序的开发者版本测试 Skype 机器人,直到 7 月底更新的桌面和移动 Skype 应用程序可用。 https://web.skype.com/en/?ecsoverride=developer

【讨论】:

    【解决方案2】:

    既然 Bot Framework V3 已经发布,那么现在应该使用最新的 Skype 客户端解决这个问题。

    【讨论】:

      猜你喜欢
      • 2017-10-28
      • 2019-04-26
      • 2012-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多