gpt4 book ai didi

slack-api - Slack API - 如何发送多张图像以便它们显示在图库中

转载 作者:行者123 更新时间:2023-12-04 12:35:58 25 4
gpt4 key购买 nike

当我使用这样的块通过 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 在画廊中显示多张图像?

最佳答案

更新:
刚刚从 Slack 开发人员支持那里得到了一个答案:
slack dev support answer screenshot

Unfortunately, horizontal/gallery formatting of images is not possibleusing the block kit builder. However, I'm going to go ahead and passyour email on to our product team so that they can take this intoconsideration for future updates.

关于slack-api - Slack API - 如何发送多张图像以便它们显示在图库中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64824180/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com