小编bez*_*ezl的帖子

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

当我使用这样的块通过 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."
        }
    ]
} …
Run Code Online (Sandbox Code Playgroud)

image-gallery slack-api slack-block-kit

3
推荐指数
1
解决办法
570
查看次数

标签 统计

image-gallery ×1

slack-api ×1

slack-block-kit ×1