Slack API - 固定消息

Slack API - Pinning Messages

我最近一直在使用 Slack API 做一些工作,如何使用 Slack API 固定消息似乎并不明显,我看到你可以更新现有消息,因此获取消息并对其进行处理似乎不是限制。

我是不是遗漏了一些明显的东西,或者现在是否有 API 调用以在频道中固定消息?

chat.updatechat.postMessage 都不支持固定消息或使用 Pin 添加新消息。

two different 引脚相关的 APIs 中,您可以找到以下注释:

The format of this message is still unstable and we expect to make changes to it in the future. Until the pinning APIs are released clients should ignore this event.

很遗憾,目前似乎无法完成此操作,但固定 API 正在进行中。

现在可以使用 Slack API 固定消息。 Slack 团队显然已经在此期间添加了此功能。

您现在可以使用:pins.add 将消息或上传的文件固定到频道

有关文档,请参阅 here