Link Search Menu Expand Document

Constructor: document

Back to constructors index

Document

Attributes:

NameTypeRequiredDescription
idlongYesDocument ID
access_hashlongYesCheck sum, dependent on document ID
file_referencebytesYesFile reference
dateintYesCreation date
mime_typestringYesMIME type
sizelongYesSize
thumbsArray of PhotoSizeOptionalThumbnails
video_thumbsArray of VideoSizeOptionalVideo thumbnails
dc_idintYesDC ID
attributesArray of DocumentAttributeYesAttributes

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]];