MadelineProtoDocs/old_docs/API_docs_v68/constructors/webDocument.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.3 KiB

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

Constructor: webDocument

Back to constructors index

Web document

Attributes:

Name Type Required Description
url string Yes URL
access_hash long Yes Access hash
size int Yes Size
mime_type string Yes Mime type
attributes Array of DocumentAttribute Yes Attributes
dc_id int Yes DC ID

Type: WebDocument

Example:

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

PWRTelegram json-encoded version:

{"_": "webDocument", "url": "string", "access_hash": long, "size": int, "mime_type": "string", "attributes": [DocumentAttribute], "dc_id": int}

Or, if you're into Lua:

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