Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持使用base64向群和c2c(不可用)上传媒体(图片) #242

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

ForliyScarlet
Copy link
Member

UploadGroupFilesApiUploadUserFilesApi 调整 body 类型,
增加了隐式的 file_data 属性,在可用的情况下计算数据的base64。

Caution

需要注意的是,虽然群聊和C2C都增加了 file_data, 但是经测试,
似乎只有 群聊 能用 base64 上传文件,C2C私聊会得到 500 错误响应。

下述API都增加了可以提供 Resource 而不是 url 的重载:

  • QGBot.uploadGroupMedia
  • QGBot.uploadUserMedia
  • QGFriend.uploadMedia
  • QGGroup.uploadMedia

resolve simple-robot/simpler-robot#964

@ForliyScarlet ForliyScarlet added the 特性 New feature or request label Oct 31, 2024
@ForliyScarlet
Copy link
Member Author

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@ForteScarlet ForteScarlet merged commit 2638462 into dev/main Nov 1, 2024
4 checks passed
@ForteScarlet ForteScarlet deleted the dev/support-send-file-data branch November 1, 2024 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
特性 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QQ组件支持本地图片上传功能
2 participants