Open
Conversation
|
|
Collaborator
|
@xiang33 plz sign CLA |
Author
done
|
Author
|
fixed lint error, plz rerun the ci |
Collaborator
|
@xiang33 still should sign CLA, you'd better check your email which sign CLA should in you github email list |
Collaborator
🔔 PR #1722 has been mergedQQ local file upload support has been implemented in #1722 which was just merged to main. What's already covered:
Potential follow-ups:If you'd like to contribute additional features, can rebase onto latest
Would you like to close this PR or rebase and contribute the file name preservation feature? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

📝 Description
This PR improves QQ channel support for local file attachments.
Previously, the QQ channel could only send media when the attachment reference was already an
http/httpsURL. Locally generated files such as PDF, HTML, and other attachments could not be sent correctly through QQ. In addition, even after adding local upload support, uploaded files could appear as unnamed attachments because the filename was not forwarded to the QQ upload request.This PR updates the QQ channel to:
conversation.pdfare displayed with the expected name on the receiving side🗣️ Type of Change
🤖 AI Code Generation
🔗 Related Issue
N/A
📚 Technical Context (Skip for Docs)
Reference URL: QQ Bot rich media / file upload API behavior
Reasoning:
The previous QQ implementation only supported direct rich media sending when the attachment reference was already a remote URL. Local files resolved from the media store could not be delivered correctly.
This PR updates the QQ channel to:
This keeps the existing direct-send behavior for remote
http/httpsURLs, while adding support for locally generated files such as PDF and other attachments.🧪 Test Environment
📸 Evidence (Optional)
Click to view Logs/Screenshots
go test ./pkg/channels/qq -v -count=1