团队不显示英雄图像

2024-04-14

我一直在尝试通过连接器将卡片发送到 Teams 频道。这些卡片确实出现了,但我尝试发送的任何英雄图像都没有显示。 这留言卡游乐场 https://messagecardplayground.azurewebsites.net/正确显示图像,但它根本不显示在 Teams 中。我对“正常”图像没有任何问题。

这是我通过 webhook 发送的 JSON,但我也尝试过 Twitter - Hero 图像示例卡,但它也不起作用:

{
  "@type": "MessageCard",
  "@context": "http://schema.org/extensions",
  "summary": "Hero card testing",
  "title": null,
  "text": null,
  "themeColor": "19b5fe",
  "sections": [
    {
      "title": null,
      "activityImage": "https://pbs.twimg.com/profile_images/862653089916096512/ljJwcmFp_bigger.jpg",
      "activityTitle": "Hero image card",
      "activitySubtitle": "This is a test",
      "facts": [],
      "text": null,
      "heroImage": {
        "image": "https://pbs.twimg.com/media/DFv74A0XkAEdwQ_.jpg"
      },
      "images": []
    }
  ]
}

我错过了什么吗?


我遇到了同样的问题。看起来作为一种解决方法,您可以在非节的文本中使用内联图像降价语法。

{
    "@type": "MessageCard",
    "@context": "http://schema.org/extensions",
    "summary": "Summary",
    "title": "Title",
    "text": "![Alt text for the image](https://pbs.twimg.com/media/C8NK1XGUIAA-CJK.jpg)",
    "themeColor": "E81123"
}

我将其描述为一种解决方法,因为图像在显示时不会以任何方式缩放。正如您从这个示例中看到的,一个大图像非常大并且溢出了容器。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

团队不显示英雄图像 的相关文章

随机推荐