MadelineProtoDocs/docs/API_docs/constructors/webDocumentNoProxy.md

33 lines
1.1 KiB
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "webDocumentNoProxy"
description: "Remote document that can be downloaded without proxying through telegram"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: webDocumentNoProxy
[Back to constructors index](/API_docs/constructors/index.html)
Remote document that can be downloaded without [proxying through telegram](https://core.telegram.org/api/files)
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|url|[string](/API_docs/types/string.html) | Yes|Document URL|
|size|[int](/API_docs/types/int.html) | Yes|File size|
|mime\_type|[string](/API_docs/types/string.html) | Yes|MIME type|
|attributes|Array of [DocumentAttribute](/API_docs/types/DocumentAttribute.html) | Yes|Attributes for media types|
### Type: [WebDocument](/API_docs/types/WebDocument.html)
### Example:
```
$webDocumentNoProxy = ['_' => 'webDocumentNoProxy', 'url' => 'string', 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]];
```