Skip to content

[Bug]: 他人上传群文件之后上报的是空消息 #32

@Cathgao

Description

@Cathgao

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

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

go-cqhttp 版本

2.0.0-beta5

运行环境

Windows (64)

运行架构

AMD64

连接方式

WebSocket (反向)

使用协议

0 | Default

重现步骤

1.同一个群里的其他人上传一个群文件
2.bot通过反向ws收到gocq的推送,但内容是空的
3.撤回这个群文件,bot又能收到正常的notice event

期望的结果是什么?

应该收到notice event

实际的结果是什么?

空消息

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

日志记录(可选)

[2025-06-12 09:06:26,863 nonebot] INFO: Self: [bot], Message -1259513763 from [A]@[:****]: ''
[2025-06-12 09:06:26,863] INFO in message: Self: [bot, Message -1259513763 from [A]@[:****]: ''
---------以上为上传群文件以下为撤回群文件-------------

[2025-06-12 09:06:39,651 nonebot] INFO: Notice: <Event, {'post_type': 'notice', 'notice_type': 'group_recall', 'time': 1749690386, 'self_id': [bot], 'group_id': ****, 'user_id': [A], 'operator_id': [A], 'message_id': -1259513763}>
[2025-06-12 09:06:39,651] INFO in notice_request: Notice: <Event, {'post_type': 'notice', 'notice_type': 'group_recall', 'time': 1749690386, 'self_id': [bot], 'group_id': ****, 'user_id': [A], 'operator_id': [A], 'message_id': -1259513763}>

补充说明(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions