feat(qqbot): add native media sending support via adapter - #39729
Closed
k176060444-lgtm wants to merge 2 commits into
Closed
feat(qqbot): add native media sending support via adapter#39729k176060444-lgtm wants to merge 2 commits into
k176060444-lgtm wants to merge 2 commits into
Conversation
added 2 commits
June 5, 2026 18:14
- Add _send_qqbot_via_adapter function for sending images, videos, audio and documents - Reuse active QQBot adapter instance for media sending - Support file type detection by extension (jpg/png/mp4/mp3 etc.) - Update error messages to include qqbot in supported platforms list
- Add _active_instance, get_active() and set_active() class methods to QQAdapter - Register active adapter on connect, clear on disconnect - Add module-level get_active_adapter() function - Fix send_file -> send_document method name
Author
🔍 Code Review Summary🔴 Critical Issues Fixed
|
Author
|
Closing in favor of PR #39430 which includes the complete implementation with CPU-spinning fix + media sending + tests. |
3 tasks
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.
Summary
This PR adds native media sending support for QQBot platform via the running adapter instance.
Changes
tools/send_message_tool.py: Add_send_qqbot_via_adapterfunctionUpdate error messages to include
qqbotin the list of platforms supporting media deliveryHow it works
When
send_messageis called withmedia_filesfor QQBot platform:get_active_adapter()send_image_file,send_voice,send_video,send_file)Testing
This feature has been tested locally with QQBot adapter running and confirmed working:
Related Issues