我试图发送个人信息给特定的用户使用网络钩子。我创建了网络钩子,所以我得到了个人信息。但我无法发送个人信息给其他人私人聊天。我不想用机器人。
slack.setWebhook("Webhook");
slack.webhook({
channel: "D01KMUZ4E4S",
username: "webhookbot",
text: "This is posted to #general and comes from a bot named webhookbot."
}, function(err, response) {
console.log(response);
});发布于 2022-07-12 22:34:09
松弛的Web钩子URL绑定到特定的通道、单个消息或组消息。您需要在您的工作区中为想要发送消息的每个用户创建一个新的web钩子。
https://stackoverflow.com/questions/72957634
复制相似问题