退出群聊事件回调
POST
https://aa-hub.ddregion.com/room/left
请求参数
Body 参数application/json
chatId
string
群聊的对话id
token
string
账号所在小组接口调用凭证
botInfo
object
触发事件的托管账号信息
imBotId
string
托管账号的系统员工id
wecomUserId
string
托管账号企业微信员工id
nickName
string
托管账号的昵称
imRoomId
string
系统群聊id
topic
string
群名称
avatarUrl
string
群头像地址
ownerImContactId
string
群主的系统联系人id
leftMembers
array [object {8}]
必需
imContactId
string
群成员的系统联系人id
nickName
string
群成员的昵称
avatarUrl
string
群成员的头像地址
roomAlias
string
群成员备注
isFriend
boolean
与此托管账号是否为好友
contactType
number
联系人类型
coworker
boolean
是否为同事
isSelf
boolean
离群成员是否为托管账号自己触发
groupId
string
群聊所属小组id
timestamp
string
BOT获取到同步信息的时间
示例
{
"chatId": "string",
"token": "string",
"botInfo": {
"imBotId": "string",
"wecomUserId": "string",
"nickName": "string"
},
"imRoomId": "string",
"topic": "string",
"avatarUrl": "string",
"ownerImContactId": "string",
"leftMembers": [
{
"imContactId": "string",
"nickName": "string",
"avatarUrl": "string",
"roomAlias": "string",
"isFriend": true,
"contactType": 0,
"coworker": true,
"isSelf": true
}
],
"groupId": "string",
"timestamp": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://aa-hub.ddregion.com/room/left' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-10-24 10:25:58