Skip to main content

View as Markdown · AI documentation index

Type Alias: MediaItem

MediaItem = object

Defined in: types.ts:86

A single photo or video inside a message.

Properties​

alt?​

optional alt: RichText

Defined in: types.ts:89


durationMs?​

optional durationMs: number

Defined in: types.ts:93

Video length in milliseconds, for duration labels.


kind​

kind: "image" | "video"

Defined in: types.ts:87


poster?​

optional poster: string

Defined in: types.ts:91

Preview frame for a video.


spoiler?​

optional spoiler: boolean

Defined in: types.ts:95

Whether the item should be hidden behind a tap-to-reveal overlay.


src​

src: string

Defined in: types.ts:88