Skip to content

[Bug] 在群内引用QQ小程序卡片消息时,bot无法看到内容 #9565

Description

@MaboroneSeika

问题描述

群友发送的B站app分享出来的小程序卡片,分享出来时候bot是可以读取的。但是引用这条卡片消息,让bot调用插件时或者直接问bot能否看到这条消息时,bot回答消息为空

如何复现?

1、B站通过QQ渠道分享视频到群内
2、引用步骤1中分享出来的QQ小程序卡片,并且触发bot,询问bot能否看到引用的消息内容
3、bot回答无法看到

AstrBot 版本

v4.27.2

操作系统

Linux

部署方式

docker

使用的消息平台适配器

onebot(napcat版本4.18.14)同样是docker布署

错误日志

[2026-08-06 11:45:55.909] [Core] [DBUG] [aiocqhttp.aiocqhttp_platform_adapter:129]: [aiocqhttp] RawMessage <Event, {'self_id': 2264540341, 'user_id': 709171314, 'time': 1785987955, 'message_id': 1866522303, 'message_seq': 1866522303, 'real_id': 1866522303, 'real_seq': '2656', 'message_type': 'group', 'sender': {'user_id': 709171314, 'nickname': 'ツバメ', 'card': '', 'role': 'owner'}, 'raw_message': '[CQ:json,data={"ver":"1.0.0.19"&#44;"prompt":"&#91;QQ小程序&#93;无穷小亮正式加入《洛克王国:世界》精灵调查团!"&#44;"config":{"type":"normal"&#44;"width":0&#44;"height":0&#44;"forward":1&#44;"autoSize":0&#44;"ctime":1785987947&#44;"token":"4ee59fd3f3ecfb4970ebaf9c93a1cbc9"}&#44;"needShareCallBack":false&#44;"app":"com.tencent.miniapp_01"&#44;"view":"view_8C8E89B49BE609866298ADDFF2DBABA4"&#44;"meta":{"detail_1":{"appid":"1109937557"&#44;"appType":0&#44;"title":"哔哩哔哩"&#44;"desc":"无穷小亮正式加入《洛克王国:世界》精灵调查团!"&#44;"icon":"https:\\/\\/open.gtimg.cn\\/open\\/app_icon\\/00\\/95\\/17\\/76\\/100951776_100_m.png?t=1785925414"&#44;"preview":"https:\\/\\/qq.ugcimg.cn\\/v1\\/vd9mc16v4u4fdiu18nu79url5rg8igte56gtr67r36ka80ard8ruqk5v91isvqdeqqfon59kgs5k2h3qrm5o4pt3irhisu9gr1p694005vaahcc3pi9kf67vvrmab1eq1pdg7v4jhd2ipsdirttjsvf3mk\\/e9vf2tsqr6j29hl2kodb3vahlc"&#44;"url":"m.q.qq.com\\/a\\/s\\/b11e1a2daccea847961f34dfef596b4d"&#44;"scene":1036&#44;"host":{"uin":709171314&#44;"nick":"ツバメ"}&#44;"shareTemplateId":"8C8E89B49BE609866298ADDFF2DBABA4"&#44;"shareTemplateData":{}&#44;"qqdocurl":"https:\\/\\/b23.tv\\/2PFeKuq?share_medium=android&amp;share_source=qq&amp;bbid=XUBDA9EBDC26FAC40DDAF0FEC14A02F61184A&amp;ts=1785987946518"&#44;"showLittleTail":""&#44;"gamePoints":""&#44;"gamePointsUrl":""&#44;"shareOrigin":0}}}]', 'font': 14, 'sub_type': 'normal', 'message': [{'type': 'json', 'data': {'data': '{"ver":"1.0.0.19","prompt":"[QQ小程序]无穷小亮正式加入《洛克王国:世界》精灵调查团!","config":{"type":"normal","width":0,"height":0,"forward":1,"autoSize":0,"ctime":1785987947,"token":"4ee59fd3f3ecfb4970ebaf9c93a1cbc9"},"needShareCallBack":false,"app":"com.tencent.miniapp_01","view":"view_8C8E89B49BE609866298ADDFF2DBABA4","meta":{"detail_1":{"appid":"1109937557","appType":0,"title":"哔哩哔哩","desc":"无穷小亮正式加入《洛克王国:世界》精灵调查团!","icon":"https:\\/\\/open.gtimg.cn\\/open\\/app_icon\\/00\\/95\\/17\\/76\\/100951776_100_m.png?t=1785925414","preview":"https:\\/\\/qq.ugcimg.cn\\/v1\\/vd9mc16v4u4fdiu18nu79url5rg8igte56gtr67r36ka80ard8ruqk5v91isvqdeqqfon59kgs5k2h3qrm5o4pt3irhisu9gr1p694005vaahcc3pi9kf67vvrmab1eq1pdg7v4jhd2ipsdirttjsvf3mk\\/e9vf2tsqr6j29hl2kodb3vahlc","url":"m.q.qq.com\\/a\\/s\\/b11e1a2daccea847961f34dfef596b4d","scene":1036,"host":{"uin":709171314,"nick":"ツバメ"},"shareTemplateId":"8C8E89B49BE609866298ADDFF2DBABA4","shareTemplateData":{},"qqdocurl":"https:\\/\\/b23.tv\\/2PFeKuq?share_medium=android&share_source=qq&bbid=XUBDA9EBDC26FAC40DDAF0FEC14A02F61184A&ts=1785987946518","showLittleTail":"","gamePoints":"","gamePointsUrl":"","shareOrigin":0}}}'}}], 'message_format': 'array', 'post_type': 'message', 'group_id': 1079586964, 'group_name': '未来龙皇、月山小雨、ツバメ'}>
[2026-08-06 11:45:55.910] [Core]
[INFO]
[core.event_bus:74]: [default] [no1(aiocqhttp)] ツバメ/709171314: [ComponentType.Json]
[2026-08-06 11:45:55.911] [Core] [DBUG] [waking_check.stage:165]: enabled_plugins_name: []
[2026-08-06 11:45:55.918] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_session_control_agent
[2026-08-06 11:45:55.918] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_empty_mention
[2026-08-06 11:45:55.919] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - persist_group_message
[2026-08-06 11:45:55.919] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - on_message
[2026-08-06 11:45:55.919] [Core] [DBUG] [pipeline.scheduler:95]: pipeline execution completed.
[2026-08-06 11:46:12.237] [Core] [DBUG] [aiocqhttp.aiocqhttp_platform_adapter:129]: [aiocqhttp] RawMessage <Event, {'self_id': 2264540341, 'user_id': 709171314, 'time': 1785987972, 'message_id': 1782402443, 'message_seq': 1782402443, 'real_id': 1782402443, 'real_seq': '2657', 'message_type': 'group', 'sender': {'user_id': 709171314, 'nickname': 'ツバメ', 'card': '', 'role': 'owner'}, 'raw_message': '[CQ:reply,id=1866522303]小蓝能看到我引用的这条消息吗', 'font': 14, 'sub_type': 'normal', 'message': [{'type': 'reply', 'data': {'id': '1866522303'}}, {'type': 'text', 'data': {'text': '小蓝能看到我引用的这条消息吗'}}], 'message_format': 'array', 'post_type': 'message', 'group_id': 1079586964, 'group_name': '未来龙皇、月山小雨、ツバメ'}>
[2026-08-06 11:46:12.242] [Core]
[INFO]
[core.event_bus:74]: [default] [no1(aiocqhttp)] ツバメ/709171314: [引用消息] 小蓝能看到我引用的这条消息吗
[2026-08-06 11:46:12.243] [Core] [DBUG] [waking_check.stage:165]: enabled_plugins_name: []
[2026-08-06 11:46:12.250] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_session_control_agent
[2026-08-06 11:46:12.251] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_empty_mention
[2026-08-06 11:46:12.251] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - persist_group_message
[2026-08-06 11:46:12.251] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - on_message
[2026-08-06 11:46:12.252] [Core] [DBUG] [pipeline.scheduler:95]: pipeline execution completed.
[2026-08-06 11:46:15.007] [Core] [DBUG] [aiocqhttp.aiocqhttp_platform_adapter:129]: [aiocqhttp] RawMessage <Event, {'time': 1785987975, 'self_id': 2264540341, 'post_type': 'notice', 'group_id': 1079586964, 'user_id': 709171314, 'notice_type': 'group_recall', 'operator_id': 709171314, 'message_id': 1782402443}>
[2026-08-06 11:46:15.007] [Core]
[INFO]
[core.event_bus:74]: [default] [no1(aiocqhttp)] 709171314/709171314: 
[2026-08-06 11:46:15.008] [Core] [DBUG] [waking_check.stage:165]: enabled_plugins_name: []
[2026-08-06 11:46:15.011] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_session_control_agent
[2026-08-06 11:46:15.011] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_empty_mention
[2026-08-06 11:46:15.011] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - persist_group_message
[2026-08-06 11:46:15.011] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - on_message
[2026-08-06 11:46:15.011] [Core] [DBUG] [pipeline.scheduler:95]: pipeline execution completed.
[2026-08-06 11:46:29.282] [Core] [DBUG] [aiocqhttp.aiocqhttp_platform_adapter:129]: [aiocqhttp] RawMessage <Event, {'self_id': 2264540341, 'user_id': 709171314, 'time': 1785987989, 'message_id': 235433920, 'message_seq': 235433920, 'real_id': 235433920, 'real_seq': '2658', 'message_type': 'group', 'sender': {'user_id': 709171314, 'nickname': 'ツバメ', 'card': '', 'role': 'owner'}, 'raw_message': '[CQ:reply,id=1866522303][CQ:at,qq=2264540341] 能看到我引用的这条消息吗', 'font': 14, 'sub_type': 'normal', 'message': [{'type': 'reply', 'data': {'id': '1866522303'}}, {'type': 'at', 'data': {'qq': '2264540341'}}, {'type': 'text', 'data': {'text': ' 能看到我引用的这条消息吗'}}], 'message_format': 'array', 'post_type': 'message', 'group_id': 1079586964, 'group_name': '未来龙皇、月山小雨、ツバメ'}>
[2026-08-06 11:46:29.430] [Core]
[INFO]
[core.event_bus:74]: [default] [no1(aiocqhttp)] ツバメ/709171314: [引用消息] [At:2264540341] 能看到我引用的这条消息吗
[2026-08-06 11:46:29.431] [Core] [DBUG] [waking_check.stage:165]: enabled_plugins_name: []
[2026-08-06 11:46:29.436] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_session_control_agent
[2026-08-06 11:46:29.437] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - handle_empty_mention
[2026-08-06 11:46:29.437] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - persist_group_message
[2026-08-06 11:46:29.437] [Core] [DBUG] [method.star_request:46]: plugin -> astrbot - on_message
[2026-08-06 11:46:29.441] [Core] [DBUG] [agent_sub_stages.internal:193]: ready to request llm provider
[2026-08-06 11:46:29.441] [Core] [DBUG] [agent_sub_stages.internal:221]: acquired session lock for llm request
[2026-08-06 11:46:29.566] [Core] [DBUG] [tools.knowledge_base_tools:61]: [知识库] 使用全局配置,知识库数量: 0
[2026-08-06 11:46:29.567] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnLLMRequestEvent) -> astrbot - decorate_llm_req
[2026-08-06 11:46:29.568] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.IDLE -> AgentState.RUNNING
[2026-08-06 11:46:29.568] [Core] [DBUG] [runners.tool_loop_agent_runner:621]: [BefCompact] messages -> [26] system,user,assistant,user,...,assistant,user,assistant,user
[2026-08-06 11:46:29.568] [Core] [DBUG] [runners.tool_loop_agent_runner:621]: [AftCompact] messages -> [26] system,user,assistant,user,...,assistant,user,assistant,user
[2026-08-06 11:46:33.211] [Plug]
[INFO]
[astrbot_plugin_context_aware.main:2004]: [ContextAware] 缓存清理: 移除 0 个过期文件, 剩余 0 KB
[2026-08-06 11:46:33.533] [Core] [DBUG] [sources.openai_responses_source:363]: response: Response(id='52664dcd-efc1-4b12-af60-9120ecc762b0', created_at=1785987989.0, error=None, incomplete_details=None, instructions=None, metadata={}, model='deepseek-v4-flash', object='response', output=[ResponseReasoningItem(id='d91442b4-a2d2-409c-a4e9-754ff9861199', summary=[], type='reasoning', content=[Content(text='The user keeps asking the same question with an empty quoted message. This is the 6th time. The quoted message is still empty text.\n\nThe scene says: trigger exists but unclear, user seems to be talking to themselves, stay silent or briefly add value. The user is asking "能看到我引用的这条消息吗" — this is directly addressed to me ("我" = me, 小蓝 was mentioned in previous turns). It\'s a continuation of the same test.\n\nI should answer briefly and honestly — still empty. Maybe vary the response a little to keep it fresh and not robotic, since we\'ve answered 5 times already. Keep it short, in character, maybe with a slightly different joke. No tools needed.', type='reasoning_text')], encrypted_content=None, status='completed'), ResponseOutputMessage(id='9d2ad605-af35-4f3e-a7e2-d681110a66a0', content=[ResponseOutputText(annotations=[], text='主人,小蓝第N+1次认真检查——这条引用依然是空!😆 里面别说内容了,连个标点符号都没有。\n\n看来主人今天铁了心要测试小蓝的诚实度,那小蓝就奉陪到底:答案是"看不见",从头到尾都是"看不见"。不过小蓝倒是有点好奇,主人是不是在引用一条"空白消息"?如果是的话,那可真为难我了——连人类都总结不出一片空气呀!\n\n主人想测试小蓝的话,建议换条"有料"的消息来引用,比如之前那个洛克王国的视频链接,小蓝立刻给您表演一个"看得见"!💙', type='output_text', logprobs=[])], role='assistant', status='completed', type='message', phase='final_answer')], parallel_tool_calls=True, temperature=1.0, tool_choice='required', tools=[WebSearchTool(type='web_search', filters=None, search_context_size=None, user_location=None)], top_p=1.0, background=False, completed_at=1785987993.0, conversation=None, max_output_tokens=None, max_tool_calls=None, moderation=None, previous_response_id=None, prompt=None, prompt_cache_key=None, prompt_cache_options=None, prompt_cache_retention=None, reasoning=Reasoning(context=None, effort='max', generate_summary=None, mode=None, summary=None), safety_identifier=None, service_tier='default', status='completed', text=ResponseTextConfig(format=ResponseFormatText(type='text'), verbosity=None), top_logprobs=0, truncation='disabled', usage=ResponseUsage(input_tokens=9749, input_tokens_details=InputTokensDetails(cache_write_tokens=None, cached_tokens=9600), output_tokens=287, output_tokens_details=OutputTokensDetails(reasoning_tokens=148), total_tokens=10036), user=None, content_filters=None, frequency_penalty=0.0, presence_penalty=0.0, store=False)
[2026-08-06 11:46:33.534] [Core] [DBUG] [runners.base:64]: Agent state transition: AgentState.RUNNING -> AgentState.DONE
[2026-08-06 11:46:33.535] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnLLMResponseEvent) -> astrbot - persist_llm_response
[2026-08-06 11:46:33.538] [Core]
[INFO]
[respond.stage:206]: Prepare to send - ツバメ/709171314: 主人,小蓝第N+1次认真检查——这条引用依然是空!😆 里面别说内容了,连个标点符号都没有。

看来主人今天铁了心要测试小蓝的诚实度,那小蓝就奉陪到底:答案是"看不见",从头到尾都是"看不见"。不过小蓝倒是有点好奇,主人是不是在引用一条"空白消息"?如果是的话,那可真为难我了——连人类都总结不出一片空气呀!

主人想测试小蓝的话,建议换条"有料"的消息来引用,比如之前那个洛克王国的视频链接,小蓝立刻给您表演一个"看得见"!💙
[2026-08-06 11:46:33.988] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> astrbot - after_message_sent
[2026-08-06 11:46:33.999] [Core] [DBUG] [pipeline.scheduler:95]: pipeline execution completed.

辅助信息

No response

检查清单

  • 我已在 Issue 列表中搜索过相关问题仍无法解决,或该问题从未被报告过。
  • 我已尝试过禁用所有插件,排除了可能是因插件导致的问题。
  • 我报告的问题与 AstrBot 本体相关,而非在报告某一插件的问题。
  • 我已阅读并同意本项目的贡献者行为准则
  • (可选)我愿意提交 PR 以帮助修复该问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions