sendFile

fun sendFile(file: File, onCompletion: (SippoResourceError?) -> Unit)

Uploads the file and sends its URI as a message to this chat.

Parameters

file

file to be uploaded and sent.

onCompletion

Callback that will be invoked when the request is completed. It will receive a SippoResourceError if any error occurs. In case of success, error will be null.