File

File object is a JSON attached to a message that contains information about an attachment.

{
    type: "image",
    url: "https://urltofile.com/image.jpeg",
    size: "2 MB",
    name: "Assignment Notes"
}
FieldTypeDescription

type

string

The type of the file.

image | video | file | gif

url

string

The url to the file

size

string

The size of the file.

name

string

The name of the file

Last updated