upload
open suspend fun upload(token: String, bytes: ByteArray, filename: String, contentType: String, onProgress: UploadProgress? = null): Attachment
Uploads a file (multipart field file); the returned id goes into message.send.attachments. onProgress is called from an OkHttp thread as the body goes out.