-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
bug?The issue author think this is a bugThe issue author think this is a bug
Description
请确保您已阅读以上注意事项,并勾选下方的确认框。
- 我已经仔细阅读上述教程和 "提问前需知"
- 我已经使用 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事件
Metadata
Metadata
Assignees
Labels
bug?The issue author think this is a bugThe issue author think this is a bug