feat: Extract quoted message content for QQ bot and pass to Dify workflows #1835
+151
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概述 / Overview
QQ bot now extracts quoted/referenced message content and exposes it as
quoted_message_textvariable for Dify workflows. Previously, when users replied to messages in QQ, only the new message was sent downstream, losing the quoted context.Changes:
message_referencefrom payloads; fetch original message viaget_message_by_id()with context-aware endpoint selectionQuotecomponents from referenced messages including text and images; graceful degradation on fetch failuresquoted_message_textto query variables, available as{{quoted_message_text}}in DifyUsage in Dify:
Technical Notes:
更改前后对比截图 / Screenshots
修改前 / Before:
修改后 / After:
quoted_message_text(原始消息内容)和user_message_text(用户回复),可基于完整上下文生成响应检查清单 / Checklist
PR 作者完成 / For PR author
项目维护者完成 / For project maintainer
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.