- 接口列表
- LLOneBot 接口文档
- HTTP 调用/接收消息
- Websocket 发送/接受消息
- 用户
- 群组
- 群列表POST
- 群详情POST
- 群成员列表POST
- 获取群成员信息POST
- 群员戳一戳(双击头像)POST
- 处理加群请求POST
- 退群POST
- 设置群管理员POST
- 设置群名片POST
- 群禁言POST
- 群全体禁言POST
- 设置群名POST
- 群踢人POST
- 设置群头衔POST
- 群荣誉POST
- 获取群精华消息POST
- 设置群精华消息POST
- 删除群精华消息POST
- 获取群根目录文件列表POST
- 上传群文件POST
- 删除群文件POST
- 创建群文件文件夹POST
- 删除群文件文件夹POST
- 获取群文件资源链接POST
- 获取群 @全体成员 剩余次 数POST
- 发送群公告POST
- 获取群公告POST
- 获取群系统消息GET
- 获取已过滤的加群通知POST
- 群打卡POST
- 设置群消息接受方式POST
- 设置群备注POST
- 消息
- 系统
- ws
群详情
POST
/get_group_info
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
group_id
integer
必需
示例
{
"group_id": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:3000/get_group_info' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
status
string
必需
retcode
integer
必需
data
object
必需
group_id
integer
必需
group_name
string
必需
group_memo
string
必需
group_create_time
integer
必需
member_count
integer
必需
max_member_count
integer
必需
groupAll
object
更详细的群信息,非OneBot11字段
message
string
必需
wording
string
必需
示例
{
"status": "ok",
"retcode": 0,
"data": {
"group_id": 12313,
"group_name": "test",
"group_memo": "consectetur velit elit",
"group_create_time": 1708607214,
"member_count": 3,
"max_member_count": 200,
"groupAll": { // 此字段为LLOneBot扩展字段
"groupCode": "123123",
"ownerUid": "u_qjD9LXs5B-OSCDKBAXTd-w",
"groupFlag": 1090520065,
"groupFlagExt": 1075904576,
"maxMemberNum": 200,
"memberNum": 3,
"groupOption": 5,
"classExt": 34,
"groupName": "test",
"fingerMemo": "群介绍",
"groupQuestion": "你为什么要加群?",
"certType": 0,
"shutUpAllTimestamp": 0,
"shutUpMeTimestamp": 0,
"groupTypeFlag": 0,
"privilegeFlag": 590016,
"groupSecLevel": 5,
"groupFlagExt3": 33554560,
"isConfGroup": 0,
"isModifyConfGroupFace": 1,
"isModifyConfGroupName": 1,
"noFigerOpenFlag": 0,
"noCodeFingerOpenFlag": 0,
"groupFlagExt4": 131072,
"groupMemo": "公告测试",
"cmdUinMsgSeq": 76871,
"cmdUinJoinTime": 1708607214,
"cmdUinUinFlag": 0,
"cmdUinMsgMask": 2,
"groupSecLevelInfo": 2,
"cmdUinPrivilege": 4,
"cmdUinFlagEx2": 65536,
"appealDeadline": 0,
"remarkName": "consectetur velit elit",
"isTop": false,
"richFingerMemo": "群介绍",
"groupAnswer": "",
"joinGroupAuth": "",
"isAllowModifyConfGroupName": 0
}
},
"message": "",
"wording": ""
}
修改于 2024-11-21 11:21:52