mirai-core / net.mamoe.mirai.message / kotlinx.io.core.Input / uploadAsImage

uploadAsImage

suspend fun Input.uploadAsImage(contact: Contact): OfflineImage

Dispatchers.IO 中读取 Input 到临时文件并将其作为图片上传后构造 Image

Exceptions

OverFileSizeMaxException -