Skip to main content

inputMediaUploadedDocument

New document

type tg.InputMediaUploadedDocument struct { /* ... */ }

Implements InputMedia.

Fields​

NameTypeRequiredDescription
NosoundVideobool—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)
ForceFilebool—Force the media file to be uploaded as document
Spoilerbool—Whether this media should be hidden behind a spoiler warning
FileInputFileClassyesThe uploaded file
ThumbInputFileClass—Thumbnail of the document, uploaded as for the file
MimeTypestringyesMIME type of document
Attributes[]DocumentAttributeClassyesAttributes that specify the type of the document (video, audio, voice, sticker, etc.)
Stickers[]InputDocumentClass—Attached stickers
VideoCoverInputPhotoClass—Start playing the video at the specified timestamp (seconds).
VideoTimestampint—Start playing the video at the specified timestamp (seconds).
TTLSecondsint—Time to live in seconds of self-destructing document

References​