Object

Attachment

Dictionary keys for sending and receiving messages with attachments.

Properties

key
binary

The single-use, 256-bit AES key represented as a hex-encoded string.

To decrypt a downloaded attachment file using key, remove the 00 prefix from the hex-encoded string, then decode the string into its original value. Use the decoded key value to decrypt the downloaded attachment file.

mimeType
string

The MIME type.

name
string

The name of the file.

owner
integer

The owner of the attachment.

signature
binary

The file checksum, represented as a hex-encoded string.

signature-base64
byte

The file checksum, represented as a Base64-encoded string.

size
integer

The size of the encrypted attachment, in bytes.

url
string

A URL assigned by Business Chat to identify the attachment.

See Also

Common Dictionaries

object BaseMessage

Dictionary keys used in all message types.