MadelineProtoDocs/old_docs/API_docs_v18/constructors/document.md

1.2 KiB

title description image
document Document https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: document

Back to constructors index

Document

Attributes:

Name Type Required Description
id long Yes ID
access_hash long Yes Access hash
user_id int Yes User ID
date int Yes Date
file_name string Yes File name
mime_type string Yes Mime type
size int Yes Size
thumb PhotoSize Optional Thumbnail
dc_id int Yes DC ID

Type: Document

Example:

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

Or, if you're into Lua:

document={_='document', id=long, access_hash=long, user_id=int, date=int, file_name='string', mime_type='string', size=int, thumb=PhotoSize, dc_id=int}