MadelineProtoDocs/old_docs/API_docs_v23/constructors/inputWebDocument.md
2020-06-16 17:50:25 +02:00

1.1 KiB

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

Constructor: inputWebDocument

Back to constructors index

The document

Attributes:

Name Type Required Description
url string Yes Remote document URL to be downloaded using the appropriate method
size int Yes Remote file size
mime_type string Yes Mime type
attributes Array of DocumentAttribute Yes Attributes for media types

Type: InputWebDocument

Example:

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

Or, if you're into Lua:

inputWebDocument={_='inputWebDocument', url='string', size=int, mime_type='string', attributes={DocumentAttribute}}