0

帮助!!!我无法让 <!channel> 或 <!here> 使用 Block Kit Builder 工作。想要在机器人发送消息时通知频道中的每个人。

问题图片

下面是我正在使用的代码。

{
    "blocks": [
        {
            "type": "header",
            "text": {
                "type": "plain_text",
                "text": "BUY/LONG",
                "emoji": true
            }
        },
        {
            "type": "section",
            "text": {
                "type": "plain_text",
                "text": "{{ticker}} with 25% BP at  {{open}}",
                "emoji": true
            },
            "accessory": {
                "type": "button",
                "text": {
                    "type": "plain_text",
                    "text": "OPEN CHART",
                    "emoji": true
                },
                "value": "click_me_123",
                "url": "https://www.tradingview.com/chart/?symbol=kucoin%3AALGOUSDT",
                "action_id": "button-action"
            }
        },
        {
            "type": "divider"
        },
        {
            "type": "section",
            "text": {
                "type": "plain_text",
                "text": "<!here>",
                "emoji": true
            }
        }
    ]
}

4

1 回答 1

1


在给定的代码中,“文本类型”必须是“类型”:“mrkdwn”才能使用“提及”。

   {
        "type": "section",
        "text": {
            "type": "mrkdwn",
            "text": "<!here>",
            "emoji": true
        }
    }
于 2021-12-11T10:06:27.910 回答