0

我想使用一些松弛 API 编写一个 python 脚本,它将能够复制一些在上午 10 点到上午 11 点之间channel A粘贴的消息,然后将相同的消息粘贴到不同的channel B.

我知道通过 python 脚本在 slack 中编写消息很容易,但是是否也可以从 slack 中提取一些消息?

4

1 回答 1

2

一种方法是在此端点上使用请求(或您喜欢的任何 http 客户端):https ://api.slack.com/methods/channels.history

这将返回给定频道的消息列表,您可以使用oldestlatest参数进行过滤。

于 2016-03-02T11:33:13.217 回答