群状态变更
事件描述
群状态变更时触发。
订阅说明
| 事件主体 | kso.xz.app.group_chat |
|---|---|
| 权限要求 | 查询用户组 kso.chat.read |
| 解密方式 | 详见 解密算法 |
事件体(解密前)
| 名称 | 参数类型 | 说明 |
|---|---|---|
| topic | string | 消息主题 kso.xz.app.group_chat |
| operation | string | 消息变更动作 delete:群聊解散 |
| time | integer | 时间(秒为单位的时间戳) |
| nonce | string | iv 向量(解密时使用) |
| signature | string | 消息签名 |
| encrypted_data | string | 消息变更的加密字段 |
事件体示例(解密前)
json
{
"topic": "kso.xz.app.group_chat",
"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": "eryere",
"operator": {
"id": "ererecce",
"type": "user"
}
}