MadelineProtoDocs/old_docs/API_docs_v97/constructors/webDocument.md
2019-12-27 17:48:04 +01:00

1.0 KiB

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

Constructor: webDocument

Back to constructors index

Remote document

Attributes:

Name Type Required Description
url string Yes Document URL
access_hash long Yes Access hash
size int Yes File size
mime_type string Yes MIME type
attributes Array of DocumentAttribute Yes Attributes

Type: WebDocument

Example:

$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]];

Or, if you're into Lua:

webDocument={_='webDocument', url='string', access_hash=long, size=int, mime_type='string', attributes={DocumentAttribute}}