团队不显示英雄形象

Jam*_*yot 6 microsoft-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": []
    }
  ]
}
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?

Dav*_*ney 6

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

{
    "@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"
}
Run Code Online (Sandbox Code Playgroud)

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


Ric*_*oft 5

Teams 目前不支持 HeroImage。这是积压的任务,但目前还没有预计到达时间。