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

994 B

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

Constructor: inputMediaUploadedDocument

Back to constructors index

New document

Attributes:

Name Type Required Description
file File path or InputFile Yes The uploaded file
file_name string Yes File name
mime_type string Optional MIME type of document

Type: InputMedia

Example:

$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'file_name' => 'string', 'mime_type' => 'string'];

Or, if you're into Lua:

inputMediaUploadedDocument={_='inputMediaUploadedDocument', file=InputFile, file_name='string', mime_type='string'}