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

1.3 KiB

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

Constructor: inputMediaUploadedDocument

Back to constructors index

Media uploaded document

Attributes:

Name Type Required Description
file File path or InputFile Yes File
mime_type string Optional Mime type
attributes Array of DocumentAttribute Yes Attributes
caption string Yes Caption

Type: InputMedia

Example:

$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string'];

PWRTelegram json-encoded version:

{"_": "inputMediaUploadedDocument", "file": InputFile, "mime_type": "string", "attributes": [DocumentAttribute], "caption": "string"}

Or, if you're into Lua:

inputMediaUploadedDocument={_='inputMediaUploadedDocument', file=InputFile, mime_type='string', attributes={DocumentAttribute}, caption='string'}