mirai-core / net.mamoe.mirai.utils / kotlinx.coroutines.io.ByteReadChannel / toExternalImage

toExternalImage

suspend fun ByteReadChannel.toExternalImage(): ExternalImage

保存为临时文件然后调用 File.toExternalImage.