Slack 机器人可以在不加入频道的情况下在频道中使用 conversation.history 方法吗?
Can a Slack bot use conversation.history method in a channel without joining the channel?
当我用 POSTMAN 尝试时,它说 NOT IN CHANNEL 并给了我一个错误。
的确,基本不参与频道的bot(与用户无异)无法获取频道的对话内容,这很奇怪,所以可能不可能。
但是,正如另一个 Stack Over Flow 问题 (
是的,当您呼叫 conversations.history
时,您的机器人需要在频道中。对于 posting 消息,机器人可以有一个特殊的范围,允许它 post 进入 public 频道而不被添加到它们,但机器人仍然需要被添加到私人频道.不幸的是 conversations.history
没有这样的范围。