Skip to content

新增了“获取机器人信息”和“获取机器人所在群列表”和“机器人所在群成员列表”和“获取群信息”的四个api - #345

Open
liutexi wants to merge 1 commit into
yh-Tpdev:mainfrom
liutexi:patch-2
Open

liutexi wants to merge 1 commit into
yh-Tpdev:mainfrom
liutexi:patch-2

Conversation

@liutexi

@liutexi liutexi commented Nov 7, 2026

Copy link
Copy Markdown

📌 关联的 Issue

Closes #


📝 更改类型

  • 格式化
  • 新增 API/内容
  • 修正错误
  • 更改依赖
  • 更改工作流/依赖/PR 模板等
  • 补充/提醒
  • 其他(请在更改描述里面填写类型)

📖 更改描述


🧪 测试与验证说明

  • 我确认文档能够正常构建

🏁 自查清单

  • 我提交的内容符合本项目的内容规范
  • 我已经对提交内容进行了初步的审查

Comment thread src/api/bot/v1/bot.md
机器人必须仍在目标群中,且群未解散;查询本身不要求机器人具有群管理权限。`permissions` 表示当前机器人在该群获得的权限,0 为未授权,1 为已授权,实际写操作仍会执行各自的权限及业务校验。停用或封禁状态不影响此只读查询。

```http
GET /open-apis/v1/group/info?token={机器人token}&groupId={群ID}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/v1/group 路由不要放到 /v1/bot 下面

Comment thread src/api/bot/v1/bot.md
群主或管理员须在群内机器人权限设置中开启“允许获取群成员列表”,默认关闭;仅有禁言、踢人等其他权限不能读取成员列表。开启授权后,机器人可以读取完整成员名单,包括开启“隐藏群成员”的群;关闭授权后后续请求会被拒绝,机器人退出后重新加入需要重新授权。机器人必须仍在目标群中且群未解散。仅返回仍在群中的未删除用户,按成员等级及群成员记录 ID 倒序,`list` 与 `total` 使用相同的成员过滤条件。接口沿用现有开放接口限流,触发时返回 1007。不返回手机号、邮箱、密码或其他个人资料。

```http
GET /open-apis/v1/group/members?token={机器人token}&groupId={群ID}&page={页码,默认1,范围1–1000000}&size={每页数量,默认20,范围1–100}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

同上

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants