到目前为止,我只使用过机器人向频道发送消息。你看起来像这样。
{
"channel_id": "my-id",
"message": "Hello Channel"
}
Run Code Online (Sandbox Code Playgroud)
如何向用户发送简单的直接消息?直接 Chanel 的网址是:“/api/v4/channel/direct”,对吗?所以尝试发送它。作为回复,我得到这个“错字?您是否缺少 team_id 或 user_id 作为 url 的一部分?”,没关系,因为我没有设置接收器用户。但现在?在 Github 上我刚刚读到我需要设置 2 个 id?我的id和接收者的id对吗?我如何从其他用户处获取 ID?