Send a new file message.
This message SHALL be sent when the user creates a new file message in the client.
This message is being acknowledged by:
| Message | Condition | Error Codes | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| create/fileMessage (app -> client) | (None) |
|
| Field | Description | Type | Optional | Nullable |
|---|---|---|---|---|
| type |
The receiver type Allowed values:
|
String | False | False |
| id |
The receiver identity |
String | False | False |
| 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 |