go-cqhttp
go-cqhttp copied to clipboard
[Bug]: 回复机器人消息的时候,找不到 oringin_message
请确保您已阅读以上注意事项,并勾选下方的确认框。
- [X] 我已经仔细阅读上述教程和 "提问前需知"
- [X] 我已经使用 dev分支版本 测试过,问题依旧存在。
- [X] 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
- [X] 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)
go-cqhttp 版本
v1.0.0-rc3
运行环境
Linux
运行架构
No response
连接方式
WebSocket (反向)
使用协议
3 | MacOS
重现步骤
可以拿到 回复机器消息中的机器消息
期望的结果是什么?
可以拿到 回复机器消息中的机器消息
实际的结果是什么?
拿到 回复机器消息中的机器消息为空报错
简单的复现代码/链接(可选)
if event.reply:
for img in event.reply.message["image"]:
users.append(UserInfo(img_url=str(img.data.get("url", ""))))
日志记录(可选)
No response
补充说明(可选)
No response
File "/usr/local/lib/python3.9/dist-packages/nonebot/message.py", line 146, in _check_matcher await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
File "/usr/local/lib/python3.9/dist-packages/nonebot/message.py", line 196, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "/usr/local/lib/python3.9/dist-packages/nonebot/internal/matcher.py", line 668, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "/usr/local/lib/python3.9/dist-packages/nonebot/internal/matcher.py", line 635, in simple_run await handler( File "/usr/local/lib/python3.9/dist-packages/nonebot/dependencies/init.py", line 89, in call values = await self.solve(**kwargs) File "/usr/local/lib/python3.9/dist-packages/nonebot/dependencies/init.py", line 191, in solve await param._solve(**params) File "/usr/local/lib/python3.9/dist-packages/nonebot/internal/params.py", line 155, in _solve solved = await task File "/usr/local/lib/python3.9/dist-packages/nonebot/utils.py", line 111, in _wrapper result = await loop.run_in_executor(None, pfunc) File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/root/ATRI/ATRI/plugins/nonebot_plugin_petpet/depends.py", line 72, in dependency raw_msg = event.original_message AttributeError: 'GroupMessageEvent' object has no attribute 'original_message'
该问题为NoneBot端插件或适配器造成的,并非go-cqhttp的问题,且我看见插件作者已经在你回复机器人的图片消息会报错的issue中回复解决方案
请更新 nonebot-adapter-onebot
到最新版本