机器人进群/出群
事件描述
机器人进群/出群时触发。
订阅说明
| 事件主体 | kso.xz.app.group_chat.member.robot |
|---|---|
| 权限要求 | 查询用户组 kso.chat.read |
| 解密方式 | 详见 解密算法 |
事件体(解密前)
| 名称 | 参数类型 | 说明 |
|---|---|---|
| topic | string | 消息主题 kso.xz.app.group_chat.member.robot |
| operation | string | 消息变更动作 create:机器人进群;delete:机器人出群 |
| time | integer | 时间(秒为单位的时间戳) |
| nonce | string | iv 向量(解密时使用) |
| signature | string | 消息签名 |
| encrypted_data | string | 消息变更的加密字段 |
事件体示例(解密前)
json
{
"topic": "kso.xz.app.group_chat.member.robot",
"operation": "create",
"time": 1704074400,
"nonce": "71***********7",
"signature": "w6**********6Q",
"encrypted_data": "B7**********iA=="
}事件体数据(解密后)
| 名称 | 参数类型 | 是否必带 | 说明 |
|---|---|---|---|
| chat_id | string | 是 | 群聊会话 id |
| company_id | string | 是 | 企业 id |
| operator | object | 是 | 事件触发用户 |
| ∟ id | string | 是 | 用户 id |
| ∟ type | string | 是 | 用户类型 |
事件体数据示例(解密后)
json
{
"chat_id": "8252944",
"company_id": "erere",
"operator": {
"id": "iieirei",
"type": "user"
}
}