# Type Alias: MediaItem

> **MediaItem** = `object`

Defined in: [types.ts:86](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/types.ts#L86)

A single photo or video inside a message.

## Properties

### alt?

> `optional` **alt**: [`RichText`](RichText.md)

Defined in: [types.ts:89](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/types.ts#L89)

***

### durationMs?

> `optional` **durationMs**: `number`

Defined in: [types.ts:93](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/types.ts#L93)

Video length in milliseconds, for duration labels.

***

### kind

> **kind**: `"image"` \| `"video"`

Defined in: [types.ts:87](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/types.ts#L87)

***

### poster?

> `optional` **poster**: `string`

Defined in: [types.ts:91](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/types.ts#L91)

Preview frame for a video.

***

### spoiler?

> `optional` **spoiler**: `boolean`

Defined in: [types.ts:95](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/types.ts#L95)

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

***

### src

> **src**: `string`

Defined in: [types.ts:88](https://github.com/laruss/react-text-game/blob/37ebb1fd49045bfbb1d2a2fa96b8f14a2f8c2644/packages/messenger/src/types.ts#L88)
