MadelineProtoDocs/docs/API_docs/constructors/inputMediaDocumentExternal.md
2024-05-01 14:53:46 +02:00

32 lines
999 B
Markdown

---
title: "inputMediaDocumentExternal"
description: "Document that will be downloaded by the telegram servers"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputMediaDocumentExternal
[Back to constructors index](/API_docs/constructors/index.html)
Document that will be downloaded by the telegram servers
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|spoiler|[Bool](/API_docs/types/Bool.html) | Optional|Whether this media should be hidden behind a spoiler warning|
|url|[string](/API_docs/types/string.html) | Yes|URL of the document|
|ttl\_seconds|[int](/API_docs/types/int.html) | Optional|Self-destruct time to live of document|
### Type: [InputMedia](/API_docs/types/InputMedia.html)
### Example:
```
$inputMediaDocumentExternal = ['_' => 'inputMediaDocumentExternal', 'spoiler' => Bool, 'url' => 'string', 'ttl_seconds' => int];
```