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.
UploadGroupFilesApi
和UploadUserFilesApi
调整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