telegram api constructor · layer 229 · #037c9330

inputMediaUploadedDocument

New document

definition

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 in seconds of self-destructing document

type

InputMedia · 19 other constructors

history

present in layers 10–229 · constructor id changed 6×

idlayers
#34e794bd10–18
#ffe76b7823
#1d89306d46
#d070f1e962–68
#e39621fd70–75
#5b38c6c176–197
#037c9330198–229