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