Constructor: document

Back to constructors index



Name Type Required Description
id long Yes Document ID
access_hash long Yes Check sum, dependant on document ID
file_reference bytes Yes File reference
date int Yes Creation date
mime_type string Yes MIME type
size int Yes Size
thumbs Array of PhotoSize Optional Thumbnails
video_thumbs Array of VideoSize Optional  
dc_id int Yes DC ID
attributes Array of DocumentAttribute Yes Attributes

Type: Document


$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumbs' => [PhotoSize, PhotoSize], 'video_thumbs' => [VideoSize, VideoSize], 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]];

Or, if you’re into Lua:

document={_='document', id=long, access_hash=long, file_reference='bytes', date=int, mime_type='string', size=int, thumbs={PhotoSize}, video_thumbs={VideoSize}, dc_id=int, attributes={DocumentAttribute}}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.