1.3 KiB
1.3 KiB
title | description | image |
---|---|---|
document | Document | 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, dependant on document ID |
date | int | Yes | Creation date |
mime_type | string | Yes | MIME type |
size | int | Yes | Size |
thumb | PhotoSize | Optional | |
dc_id | int | Yes | DC ID |
version | int | Yes | |
attributes | Array of DocumentAttribute | Yes | Attributes |
Type: Document
Example:
$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]];
Or, if you're into Lua:
document={_='document', id=long, access_hash=long, date=int, mime_type='string', size=int, thumb=PhotoSize, dc_id=int, version=int, attributes={DocumentAttribute}}