MadelineProtoDocs/old_docs/API_docs_v70/constructors/inputMediaUploadedDocument.md

1.5 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
thumb File path or InputFile Optional Thumbnail
mime_type string Optional Mime type
attributes Array of DocumentAttribute Yes Attributes
caption string Yes Caption
stickers Array of MessageMedia, Message, Update or InputDocument Optional Stickers
ttl_seconds int Optional Ttl seconds

Type: InputMedia

Example:

$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int];

Or, if you're into Lua:

inputMediaUploadedDocument={_='inputMediaUploadedDocument', file=InputFile, thumb=InputFile, mime_type='string', attributes={DocumentAttribute}, caption='string', stickers={InputDocument}, ttl_seconds=int}