MadelineProtoDocs/docs/API_docs/constructors/inputMediaUploadedDocument.md
2024-05-01 14:53:46 +02:00

1.9 KiB

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

Constructor: inputMediaUploadedDocument

Back to constructors index

New document

Attributes:

Name Type Required Description
nosound_video Bool Optional Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)
force_file Bool Optional Force the media file to be uploaded as document
spoiler Bool Optional Whether this media should be hidden behind a spoiler warning
file File path or InputFile Yes The uploaded file
thumb File path or InputFile Optional Thumbnail of the document, uploaded as for the file
mime_type string Optional MIME type of document
attributes Array of DocumentAttribute Yes Attributes that specify the type of the document (video, audio, voice, sticker, etc.)
stickers Array of MessageMedia, Message, Update or InputDocument Optional Attached stickers
ttl_seconds int Optional Time to live in seconds of self-destructing document

Type: InputMedia

Example:

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