mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-30 10:50:18 +08:00
Improve voice upload
This commit is contained in:
parent
1600a76aa3
commit
dca1eab5a5
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user