feat(qqbot): add media attachment support for voice/image/video/file - #18321
Closed
Allonz wants to merge 2 commits into
Closed
feat(qqbot): add media attachment support for voice/image/video/file#18321Allonz wants to merge 2 commits into
Allonz wants to merge 2 commits into
Conversation
- Add media file upload support to _send_qqbot function
- Support chat_type detection from target format (c2c:/group:/guild:)
- Upload media via QQ Bot v2 API (/v2/users/{openid}/files, /v2/groups/{group_openid}/files)
- Map file extensions to QQ Bot file_type (1=image, 2=video, 3=voice, 4=file)
- Include media in message payload via 'file_info' field
- Update error messages to include qqbot in supported platforms
- Update schema description with qqbot target format examples
Author
|
where is some bugs in this PR,sorry,I will fix them and commit new PR up |
3 tasks
This was referenced May 16, 2026
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
Add native media attachment support for QQ Bot platform, enabling voice, image, video, and file sending via
send_messagetool.Changes
c2c:<openid>(private chat) andgroup:<group_openid>(group chat) target formats1= image (png/jpg/jpeg/gif)2= video (mp4/mov/avi)3= voice (mp3/wav/flac/silk/amr)4= file (default)POST /v2/users/{openid}/filesPOST /v2/groups/{group_openid}/filesmedia.file_infofield when media is attachedUsage
Notes
media_filesparameter pattern as other platforms (telegram, discord, yuanbao, etc.)