2019-08-15 20:25:16 +02:00
|
|
|
---
|
|
|
|
title: inputMediaDocument
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Forwarded document
|
2019-08-15 20:25:16 +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-08-15 20:25:16 +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-08-15 20:25:16 +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}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|