MadelineProto/docs/API_docs/constructors/document.md

33 lines
970 B
Markdown
Raw Normal View History

2016-12-20 13:15:22 +01:00
---
title: document
2016-12-20 13:32:11 +01:00
description: document attributes, type and example
2016-12-20 13:15:22 +01:00
---
## Constructor: document
2016-12-20 13:15:22 +01:00
[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|
2016-12-19 18:56:05 +01:00
### Type: [Document](../types/Document.md)
### Example:
```
2016-12-19 17:48:27 +01:00
$document = ['_' => document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [Vector t], ];
```