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