mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
1.5 KiB
1.5 KiB
title | description | nav_exclude | image |
---|---|---|---|
document | Document | true | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: document
Document
Attributes:
Name | Type | Required | Description |
---|---|---|---|
id | long | Yes | Document ID |
access_hash | long | Yes | Check sum, dependent on document ID |
file_reference | bytes | Yes | File reference |
date | int | Yes | Creation date |
mime_type | string | Yes | MIME type |
size | long | Yes | Size |
thumbs | Array of PhotoSize | Optional | Thumbnails |
video_thumbs | Array of VideoSize | Optional | Video thumbnails |
dc_id | int | Yes | DC ID |
attributes | Array of DocumentAttribute | Yes | Attributes |
Type: Document
Example:
$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'mime_type' => 'string', 'size' => long, 'thumbs' => [PhotoSize, PhotoSize], 'video_thumbs' => [VideoSize, VideoSize], 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]];