1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-11 16:39:36 +01:00
MadelineProto/old_docs/API_docs_v41/constructors/document.md

913 B

title description
document document attributes, type and example

Constructor: document

Back to constructors index

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
attributes Array of DocumentAttribute Required

Type: Document

Example:

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