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.
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
infoMetadata about the image referred to in url.
One of: [m.image].
Optional
urlRequired if the file is unencrypted. The URL (typically mxc:// URI) to the file.
Content format of media events with msgtype
m.image
See
https://spec.matrix.org/v1.11/client-server-api/#mimage