docs: add Feishu event subscription configuration to README
This commit is contained in:
@@ -88,7 +88,13 @@ irm https://raw.githubusercontent.com/xvirobotics/metabot/main/install.ps1 | iex
|
|||||||
1. 访问 [飞书开发者平台](https://open.feishu.cn/)
|
1. 访问 [飞书开发者平台](https://open.feishu.cn/)
|
||||||
2. 创建企业自建应用,添加「机器人」能力
|
2. 创建企业自建应用,添加「机器人」能力
|
||||||
3. 获取 **AppID** 和 **AppSecret**
|
3. 获取 **AppID** 和 **AppSecret**
|
||||||
4. 开通权限:`im:message`、`im:message:readonly`、`im:resource`
|
4. 开通权限:
|
||||||
|
- `im:message` - 发送消息
|
||||||
|
- `im:message:readonly` - 读取消息
|
||||||
|
- `im:resource` - 上传下载资源
|
||||||
|
5. **事件订阅**:在「事件与回调」中,订阅 `im.message.receive_v1` 事件(接收用户消息)
|
||||||
|
- 订阅方式选择「长连接」(无需公网 IP)
|
||||||
|
- 或在「请求地址配置」中填写回调 URL(需要 HTTPS)
|
||||||
|
|
||||||
#### 5.2 配置 bots.json
|
#### 5.2 配置 bots.json
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user