mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-04 10:47:54 +01:00
25 lines
844 B
Markdown
25 lines
844 B
Markdown
|
## Constructor: document
|
||
|
|
||
|
### 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 = ['id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute], ];
|
||
|
```
|