当我使用这样的块通过 api 发送多个图像时:
{
"blocks": [
{
"type": "image",
"title": {
"type": "plain_text",
"text": "Please enjoy this photo of a kitten"
},
"image_url": "http://placekitten.com/500/500",
"alt_text": "An incredibly cute kitten."
},
{
"type": "image",
"title": {
"type": "plain_text",
"text": "Please enjoy this photo of a kitten"
},
"image_url": "http://placekitten.com/500/500",
"alt_text": "An incredibly cute kitten."
},
{
"type": "image",
"title": {
"type": "plain_text",
"text": "Please enjoy this photo of a kitten"
},
"image_url": "http://placekitten.com/500/500",
"alt_text": "An incredibly cute kitten."
}
]
}
Slack 将它们显示为单独的块,并且不会将它们组合到图库中: slack screenshot - API
当我在一条消息中使用 Slack 应用程序上传它们时 - 它将它们组合成一个画廊: slack screenshot - with gallery
我在 file.upload 之后尝试了块、附件、第三方 url、永久链接 - 结果是一样的,Slack 没有将它们合并到图库中。
所以,问题是 - 我如何让 Slack 在画廊中显示几张图片?