inputMediaUploadedDocument
New document
type tg.InputMediaUploadedDocument struct { /* ... */ }
Implements InputMedia.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
NosoundVideo | bool | — | Whether to send the file as a video even if it doesn't have an audio track (i.e. if set, the documentAttributeAnimated attribute will not be set even for videos without audio) |
ForceFile | bool | — | Force the media file to be uploaded as document |
Spoiler | bool | — | Whether this media should be hidden behind a spoiler warning |
File | InputFileClass | yes | The uploaded file |
Thumb | InputFileClass | — | Thumbnail of the document, uploaded as for the file |
MimeType | string | yes | MIME type of document |
Attributes | []DocumentAttributeClass | yes | Attributes that specify the type of the document (video, audio, voice, sticker, etc.) |
Stickers | []InputDocumentClass | — | Attached stickers |
VideoCover | InputPhotoClass | — | Start playing the video at the specified timestamp (seconds). |
VideoTimestamp | int | — | Start playing the video at the specified timestamp (seconds). |
TTLSeconds | int | — | Time to live in seconds of self-destructing document |
References
- Official documentation
- Generated Go reference
- TL definition:
inputMediaUploadedDocument#37c9330