mirror of
https://github.com/mamoe/mirai.git
synced 2026-09-04 05:52:51 +08:00
Improve voice upload
This commit is contained in:
@@ -219,8 +219,7 @@ internal object HighwayHelper {
|
||||
parameter("bmd5", resource.md5.toUHexString(""))
|
||||
parameter("mType", "pttDu")
|
||||
parameter("voice_encodec", resource.voiceCodec)
|
||||
body = resource.inputStream().withUse { readBytes() }
|
||||
// body = resource.inputStream().consumeAsWriteChannelContent(null)
|
||||
body = resource.consumeAsWriteChannelContent(null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user