# $addMediaItem — Adds a new media gallery item

## Syntax

```
$addMediaItem[url;(description);(spoiler)]
```

## Parameters

- **url** *(text, required)* — The url for the media item
- **description** *(text, optional)* — The description of the media item
- **spoiler** *(boolean, optional)* — Whether to set a spoiler

## Return Value

- String.

## Usage

```
$addMediaItem[url;(description);(spoiler)] → result
```

## Example

```bdfd
$addMediaGallery[g]$addMediaItem[https://example.com/a.png;Picture;true]
```
