MadelineProtoDocs/old_docs/API_docs_v95/constructors/messageMediaDocument.md

40 lines
942 B
Markdown
Raw Normal View History

2019-03-29 21:12:30 +01:00
---
title: messageMediaDocument
2019-12-27 17:48:04 +01:00
description: Document (video, audio, voice, sticker, any media type except photo)
2019-03-29 21:12:30 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageMediaDocument
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Document (video, audio, voice, sticker, any media type except photo)
2019-03-29 21:12:30 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|document|[Document](../types/Document.md) | Optional|Attached document|
|ttl\_seconds|[int](../types/int.md) | Optional|Time to live of self-destructing document|
2019-03-29 21:12:30 +01:00
### 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}
```