mirai-core / net.mamoe.mirai.message / java.io.File / uploadAsImage

uploadAsImage

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

Dispatchers.IO 中将文件作为图片上传后构造 Image

Exceptions

OverFileSizeMaxException -