InterfaceMediaAttachment

Represents a file or media MediaAttachment that can be added to a status.

interface MediaAttachment {
    blurhash?: null | string;
    description?: null | string;
    id: string;
    meta?: null | MediaAttachmentMeta;
    previewRemoteUrl?: null | string;
    previewUrl: string;
    remoteUrl?: null | string;
    textUrl?: null | string;
    type: MediaAttachmentType;
    url?: null | string;
}

Properties

blurhash?: null | string

A hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yet.

description?: null | string

Alternate text that describes what is in the media MediaAttachment, to be used for the visually impaired or when media MediaAttachments do not load.

id: string

The ID of the MediaAttachment in the database.

meta?: null | MediaAttachmentMeta

Metadata returned by Paperclip.

previewRemoteUrl?: null | string

Remote version of previewUrl

previewUrl: string

The location of a scaled-down preview of the MediaAttachment.

remoteUrl?: null | string

The location of the full-size original MediaAttachment on the remote website.

textUrl?: null | string

A shorter URL for the MediaAttachment.

The type of the MediaAttachment.

url?: null | string

The location of the original full-size MediaAttachment.