Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 获取群信息时,支持获取"未加入的群聊"的信息 #199

Closed
saucer-man opened this issue Jan 16, 2024 · 2 comments
Closed
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@saucer-man
Copy link

描述功能

使用接口/get_group_info获取群聊信息时,如果该群聊未加入,则返回{'status': 'failed', 'retcode': 35000, 'data': {}, 'message': 'Unable to obtain group information', 'echo': ''}。之前使用cq-http的时候,就算没加入群,也是可以获取群的部分信息的,希望能够优化这个逻辑,感谢~

@saucer-man saucer-man added the enhancement New feature or request label Jan 16, 2024
@1804909625
Copy link

请问该接口是否完善

@whitechi73
Copy link
Owner

whitechi73 commented Jan 25, 2024

接口详细:

端点:get_not_joined_group_info

请求内容(以Json请求为例):

{
  "action": "get_not_joined_group_info",
  "params": {
    "group_id": 391240462
  },
  "echo": 111
}

返回结果:

{
  "status": "ok",
  "retcode": 0,
  "data": {
    "group_id": 391240462,
    "max_member_cnt": 200,
    "member_count": 35,
    "group_name": "重症精神病患者集中营",
    "group_desc": "妄想山海逆舞蝶QQ群,欢迎加入",
    "owner": 1243575724,
    "create_time": 1653303188,
    "group_flag": 1090520065,
    "group_flag_ext": -1071579072
  },
  "echo": 111
}

@whitechi73 whitechi73 added the good first issue Good for newcomers label Jan 25, 2024
@whitechi73 whitechi73 pinned this issue Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants