MadelineProto/docs/API_docs/constructors/document.md

844 B

Constructor: document

Attributes:

Name Type Required
id long Required
access_hash long Required
date int Required
mime_type string Required
size int Required
thumb PhotoSize Required
dc_id int Required
version int Required
attributes Array of DocumentAttribute Required

Type: Document

Example:

$document = ['id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [DocumentAttribute], ];