Message: create / fileMessage (client -> app)

Back to overview

Send a new file message.

This message SHALL be sent when the user creates a new file message in the client.

Acknowledgement

This message is being acknowledged by:

Message Condition Error Codes
create/fileMessage (app -> client)

(None)

Name Description
blocked

The recipient has been blocked in the app

fileTooLarge

The file could not be uploaded because it is too large

internalError

An internal error occurred

Args

Field Description Type Optional Nullable
type

The receiver type

Allowed values: "me", "contact", "group", "distributionList"

String False False
id

The receiver identity

String False False

Data

Field Description Type Optional Nullable
name

The filename

String False False
fileType

The MIME type of the file

String False False
sendAsFile

Force-send this item as file, even if it's an image or audio file

Boolean False False
size

The file size in bytes

Integer False False
caption

Caption of the message

String True False