Companion
object Companion
Functions
Link copied to clipboard
将资源作为单独的图片消息发送给 this
suspend fun <C : Contact> C.sendImage(file: <Error class: unknown class>, formatName: String? = null): MessageReceipt<C>
将文件作为图片发送到指定联系人
suspend fun <C : Contact> C.sendImage(imageStream: <Error class: unknown class>, formatName: String? = null): MessageReceipt<C>
读取 InputStream 到临时文件并将其作为图片发送到指定联系人
Link copied to clipboard
suspend fun Contact.uploadImage(file: <Error class: unknown class>, formatName: String? = null): Image
将文件作为图片上传, 但不发送
suspend fun Contact.uploadImage(imageStream: <Error class: unknown class>, formatName: String? = null): Image
读取 InputStream 到临时文件并将其作为图片上传, 但不发送