# inputMediaUploadedDocument

> New document

[Back to constructors index](/API_docs/constructors/index.html)



New document

### Attributes:

| Name     |    Type       | Required | Description |
|----------|---------------|----------|-------------|
|nosound\_video|[Bool](/API_docs/types/Bool.html) | Optional|Whether to send the file as a video even if it doesn't have an audio track (i.e. if set, the [documentAttributeAnimated](../constructors/documentAttributeAnimated.html) attribute will **not** be set even for videos without audio)|
|force\_file|[Bool](/API_docs/types/Bool.html) | Optional|Force the media file to be uploaded as document|
|spoiler|[Bool](/API_docs/types/Bool.html) | Optional|Whether this media should be hidden behind a spoiler warning|
|file|[File path or InputFile](/API_docs/types/InputFile.html) | Yes|The [uploaded file](https://core.telegram.org/api/files)|
|thumb|[File path or InputFile](/API_docs/types/InputFile.html) | Optional|Thumbnail of the document, uploaded as for the file|
|mime\_type|[string](/API_docs/types/string.html) | Optional|MIME type of document|
|attributes|Array of [DocumentAttribute](/API_docs/types/DocumentAttribute.html) | Yes|Attributes that specify the type of the document (video, audio, voice, sticker, etc.)|
|stickers|Array of [MessageMedia, Message, Update or InputDocument](/API_docs/types/InputDocument.html) | Optional|Attached stickers|
|video\_cover|[MessageMedia, Message, Update or InputPhoto](/API_docs/types/InputPhoto.html) | Optional|Start playing the video at the specified timestamp (seconds).|
|video\_timestamp|[int](/API_docs/types/int.html) | Optional|Start playing the video at the specified timestamp (seconds).|
|ttl\_seconds|[int](/API_docs/types/int.html) | Optional|Time to live in seconds of self-destructing document|



### Type: [InputMedia](/API_docs/types/InputMedia.html)


### Example:

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