MadelineProtoDocs/old_docs/API_docs_v100/constructors/inputMediaDocument.md

40 lines
873 B
Markdown
Raw Normal View History

2019-06-23 13:07:51 +02:00
---
title: inputMediaDocument
2019-12-27 17:48:04 +01:00
description: Forwarded document
2019-06-23 13:07:51 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputMediaDocument
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Forwarded document
2019-06-23 13:07:51 +02:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|id|[MessageMedia, Message, Update or InputDocument](../types/InputDocument.md) | Optional|The document to be forwarded.|
|ttl\_seconds|[int](../types/int.md) | Optional|Time to live of self-destructing document|
2019-06-23 13:07:51 +02:00
### Type: [InputMedia](../types/InputMedia.md)
### Example:
```php
$inputMediaDocument = ['_' => 'inputMediaDocument', 'id' => InputDocument, 'ttl_seconds' => int];
```
Or, if you're into Lua:
```lua
inputMediaDocument={_='inputMediaDocument', id=InputDocument, ttl_seconds=int}
```