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]: 无法检测到消息链中的“引用消息”组件 #934

Open
Garrise opened this issue Nov 25, 2024 · 0 comments
Open

[Bug]: 无法检测到消息链中的“引用消息”组件 #934

Garrise opened this issue Nov 25, 2024 · 0 comments
Labels
bug? Bug或Bug修复相关 IM: aiocqhttp onebot协议适配器相关 m: Platform 消息接收或发送的顶层操作模块

Comments

@Garrise
Copy link

Garrise commented Nov 25, 2024

消息平台适配器

aiocqhttp(使用 OneBot 协议接入的)

运行环境

Windows11, Python 3.10.14 in Conda

LangBot 版本

v3.4.0

异常情况

Aiocqhttp使用LLOneBot v4.4.1

测试消息如图:
image
测试代码如下文:

@handler(GroupMessageReceived)
async def group_normal_message_received(self, ctx: EventContext):
        msg: MessageChain
        msg = ctx.event.message_chain
        if Image in msg:
            print("Image found.")
            img = msg[msg.index(Image)]
        if Quote in msg:
            print("Quote found")
            quote = msg[msg.index(Quote)]

图片和文字消息组件均能检测到,但引用消息无法检测到。

启用的插件

No response

@Garrise Garrise added the bug? Bug或Bug修复相关 label Nov 25, 2024
@RockChinQ RockChinQ added m: Platform 消息接收或发送的顶层操作模块 IM: aiocqhttp onebot协议适配器相关 labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug? Bug或Bug修复相关 IM: aiocqhttp onebot协议适配器相关 m: Platform 消息接收或发送的顶层操作模块
Projects
None yet
Development

No branches or pull requests

2 participants