Skip to main content

inputMediaUploadedDocument

New document

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

Implements InputMedia.

Fields

NameTypeRequiredDescription
NosoundVideoboolWhether 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)
ForceFileboolForce the media file to be uploaded as document
SpoilerboolWhether this media should be hidden behind a spoiler warning
FileInputFileClassyesThe uploaded file
ThumbInputFileClassThumbnail 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[]InputDocumentClassAttached stickers
VideoCoverInputPhotoClassStart playing the video at the specified timestamp (seconds).
VideoTimestampintStart playing the video at the specified timestamp (seconds).
TTLSecondsintTime to live in seconds of self-destructing document

References