MadelineProtoDocs/old_docs/API_docs_v109/constructors/messageMediaDocument.md

40 lines
942 B
Markdown
Raw Permalink Normal View History

2020-03-06 12:24:14 +01:00
---
title: messageMediaDocument
description: Document (video, audio, voice, sticker, any media type except photo)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageMediaDocument
[Back to constructors index](index.md)
Document (video, audio, voice, sticker, any media type except photo)
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|document|[Document](../types/Document.md) | Optional|Attached document|
|ttl\_seconds|[int](../types/int.md) | Optional|Time to live of self-destructing document|
### Type: [MessageMedia](../types/MessageMedia.md)
### Example:
```php
$messageMediaDocument = ['_' => 'messageMediaDocument', 'document' => Document, 'ttl_seconds' => int];
```
Or, if you're into Lua:
```lua
messageMediaDocument={_='messageMediaDocument', document=Document, ttl_seconds=int}
```