inputMediaUploadedDocument #

New document

Layer 223

inputMediaUploadedDocument#37c9330 flags:# nosound_video:flags.3?true force_file:flags.4?true spoiler:flags.5?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector<DocumentAttribute> stickers:flags.0?Vector<InputDocument> video_cover:flags.6?InputPhoto video_timestamp:flags.7?int ttl_seconds:flags.1?int = InputMedia;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
nosound_videoflags.3?trueWhether 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)
force_fileflags.4?trueForce the media file to be uploaded as document
spoilerflags.5?trueWhether this media should be hidden behind a spoiler warning
fileInputFileThe uploaded file
thumbflags.2?InputFileThumbnail of the document, uploaded as for the file
mime_typestringMIME type of document
attributesVector<DocumentAttribute>Attributes that specify the type of the document (video, audio, voice, sticker, etc.)
stickersflags.0?Vector<InputDocument>Attached stickers
video_coverflags.6?InputPhotoStart playing the video at the specified timestamp (seconds).
video_timestampflags.7?intStart playing the video at the specified timestamp (seconds).
ttl_secondsflags.1?intTime to live of self-destructing document, can be 0 to disable self-destruction, 0x7FFFFFFF to self-destruct the document immediately after it's played; otherwise self-destructs ttl_seconds after it's played.

Type #

InputMedia

documentAttributeAnimated #

Defines an animated GIF

Uploading and Downloading Files #

How to transfer large data batches correctly.