2017-01-02 19:50:37 +01:00
|
|
|
---
|
|
|
|
title: document
|
|
|
|
description: document attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: document
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
|
|
|
|id|[long](../types/long.md) | Required|
|
|
|
|
|access\_hash|[long](../types/long.md) | Required|
|
|
|
|
|date|[int](../types/int.md) | Required|
|
|
|
|
|mime\_type|[string](../types/string.md) | Required|
|
|
|
|
|size|[int](../types/int.md) | Required|
|
|
|
|
|thumb|[PhotoSize](../types/PhotoSize.md) | Required|
|
|
|
|
|dc\_id|[int](../types/int.md) | Required|
|
|
|
|
|version|[int](../types/int.md) | Required|
|
|
|
|
|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Required|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Document](../types/Document.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [Vector t], ];
|
Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55
2017-01-02 21:04:36 +01:00
|
|
|
```
|
|
|
|
|