"Get started" 新成员 Slack 部分的欢迎消息

Welcome message in "Get started" Slack section for new members

我正在尝试将欢迎消息发送到 入门 部分 (check image),以供新用户加入我的 Slack 工作区。 此外,我无法访问开始自定义部分:https://[workspace].slack.com/customize/get-started

我正在监听team_join事件,当有新用户加入时我收到了这个事件,但我只能通过在频道中发送消息来问候他或私聊。

如何将消息、window 或块放入此部分?

@app.event("team_join")
def ask_for_introduction(logger: logging.Logger, event, say):
    logger.debug(event)
    welcome_channel_id = "#general"
    user_id = event["user"]["id"]
    text = f"Welcome, <@{user_id}>! "
    blocks = [
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "Hey there!"
            }
        },
        {
            "type": "actions",
            "elements": [
                {
                    "type": "button",
                    "text": {
                        "type": "plain_text",
                        "text": "Left button",
                        "emoji": True
                    }
                },
                {
                    "type": "button",
                    "text": {
                        "type": "plain_text",
                        "text": "Right button",
                        "emoji": True
                    }
                }
            ]
        },
        {
            "type": "section",
            "text": {
                "type": "mrkdwn",
                "text": "This is a mrkdwn section block :ghost: *this is bold*, and ~this is crossed out~, and <https://google.com|this is a link>"
            }
        }
    ]
    say(
        blocks=blocks,
        text=text,
        channel=welcome_channel_id
    )

目前无法通过 API 访问此部分。

新工作区已完全删除此部分。 Here is an official Slack support answer