我正在尝试构建一个将论坛与 slack 同步的应用程序。在任一网站上发帖都会反射(reflect)在该网站上,但我需要 Slack 中的消息 ID。 The Slack Documentation说
the
text
property is the text spoken, andts
is the unique (per-channel) timestamp.
这是否意味着
ts
字段实际上是该 channel 的 ID?
最佳答案
是的,时间戳 (ts) 是 channel 内消息的 ID。
跨多个 Slack 工作区的消息的完整 ID 是:
您可以通过查看 API 方法 chat.delete 上的示例进行验证。用于删除消息。您还需要提供 channel ID 和时间戳以标识要删除的消息。 (加上 token ,它与 slack 团队 1:1 链接)。
关于slack - 消息 ts 是消息的 ID 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49097120/