Optional
fileRequired if the file is encrypted. Information on the encrypted file, as specified in End-to-end encryption.
Optional
filenameThe original filename of the uploaded file.
Optional
formatThe format used in the formatted_body
.
Optional
formatted_The formatted version of the body
, when it acts as a caption. This is required if format
is specified.
Optional
urlRequired if the file is unencrypted. The URL (typically mxc:// URI) to the file.
If filename is not set or the value of both properties are identical, this is the filename of the original upload. Otherwise, this is a caption for the file.