在 Slack API 中,ts 字段是整个工作区唯一的还是仅对频道唯一?

In Slack API, is the ts field unique throughout the workspace or is it only unique to the channel?

我有一个集合,用于存储来自不同渠道的松弛消息。我想用 ts 识别特定记录。是否有可能在任何频道中的多个消息具有相同的 ts 值?

消息的 timestamp 对于频道是唯一的,但对于工作区不是。要在工作区中唯一标识一条消息,您需要 timestampchannel.

示例:

{
    "channel": "C024BE91L",
    "ts": "1401383885.000061"
}

这就是为什么每个 API 修改消息的方法都需要这两个参数的原因。 (例如chat.delete).