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

[Bug]:qqbot无法检测到新成员进群 #2547

Open
4 tasks done
higher666 opened this issue Mar 11, 2025 · 0 comments
Open
4 tasks done

[Bug]:qqbot无法检测到新成员进群 #2547

higher666 opened this issue Mar 11, 2025 · 0 comments
Labels
bug? The issue author think this is a bug

Comments

@higher666
Copy link

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述教程和 "提问前需知"
  • 我已经使用 dev分支版本 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)

go-cqhttp 版本

1.3.1

运行环境

Windows (64)

运行架构

x86

连接方式

WebSocket (反向)

使用协议

0 | Default

重现步骤

让qq机器人所在的群进入新群员

期望的结果是什么?

qq机器人上报“有人进群”的event字典

实际的结果是什么?

没有上报任何event字典,相当于qq群没有新成员进入

简单的复现代码/链接(可选)

import json
from sanic import Sanic

app = Sanic('qqbot')
@app.websocket('/qqbot')
async def qqbot(request, 机器人):
    while True:
        dic1 = await 机器人.recv()
        dic = json.loads(dic1)
        print(json.dumps(dic, indent=4, ensure_ascii=False))

        if dic.get('notice_type') == 'group_increase':
            
            user_id=dic['user_id']
            group_id=dic['group_id']
            
            print('有人进群了qq号为:'+user_id)


if __name__ == '__main__':
    app.run(debug=True, auto_reload=True)

日志记录(可选)

补充说明(可选)

该qq机器人就算是管理员身份也无法识别到有人进群这个event事件

@higher666 higher666 added the bug? The issue author think this is a bug label Mar 11, 2025
@higher666 higher666 changed the title [Bug]: [Bug]:qqbot无法检测到新成员进群 Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? The issue author think this is a bug
Projects
None yet
Development

No branches or pull requests

1 participant