mirai-core / net.mamoe.mirai.message / java.net.URL / uploadAsImage

uploadAsImage

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

Dispatchers.IO 中下载 URL 到临时文件并将其作为图片上传后构造 Image

Exceptions

OverFileSizeMaxException -