# messageMediaDocument

> Document (video, audio, voice, sticker, any media type except photo)

[Back to constructors index](/API_docs/constructors/index.html)



Document (video, audio, voice, sticker, any media type except photo)

### Attributes:

| Name     |    Type       | Required | Description |
|----------|---------------|----------|-------------|
|nopremium|[Bool](/API_docs/types/Bool.html) | Optional|Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.|
|spoiler|[Bool](/API_docs/types/Bool.html) | Optional|Whether this media should be hidden behind a spoiler warning|
|video|[Bool](/API_docs/types/Bool.html) | Optional|Whether this is a video.|
|round|[Bool](/API_docs/types/Bool.html) | Optional|Whether this is a round video.|
|voice|[Bool](/API_docs/types/Bool.html) | Optional|Whether this is a voice message.|
|document|[Document](/API_docs/types/Document.html) | Optional|Attached document|
|alt\_documents|Array of [Document](/API_docs/types/Document.html) | Optional|Videos only, contains alternative qualities of the video.|
|video\_cover|[Photo](/API_docs/types/Photo.html) | Optional|Custom video cover.|
|video\_timestamp|[int](/API_docs/types/int.html) | Optional|Start playing the video at the specified timestamp (seconds).|
|ttl\_seconds|[int](/API_docs/types/int.html) | Optional|Time to live of self-destructing document|



### Type: [MessageMedia](/API_docs/types/MessageMedia.html)


### Example:

```
$messageMediaDocument = ['_' => 'messageMediaDocument', 'nopremium' => Bool, 'spoiler' => Bool, 'video' => Bool, 'round' => Bool, 'voice' => Bool, 'document' => Document, 'alt_documents' => [Document, Document], 'video_cover' => Photo, 'video_timestamp' => int, 'ttl_seconds' => int];
```
