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
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
nosound_video | true | 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) |
force_file | true | Force the media file to be uploaded as document |
spoiler | true | Whether this media should be hidden behind a spoiler warning |
file | InputFile | The uploaded file |
thumb | InputFile | Thumbnail of the document, uploaded as for the file |
mime_type | string | MIME type of document |
attributes | Vector<DocumentAttribute> | Attributes that specify the type of the document (video, audio, voice, sticker, etc.) |
stickers | Vector<InputDocument> | Attached stickers |
video_cover | InputPhoto | Start playing the video at the specified timestamp (seconds). |
video_timestamp | int | Start playing the video at the specified timestamp (seconds). |
ttl_seconds | int | Time to live in seconds of self-destructing document |
type
InputMedia · 19 other constructors
history
present in layers 10–229 · constructor id changed 6×
| id | layers |
|---|---|
| #34e794bd | 10–18 |
| #ffe76b78 | 23 |
| #1d89306d | 46 |
| #d070f1e9 | 62–68 |
| #e39621fd | 70–75 |
| #5b38c6c1 | 76–197 |
| #037c9330 | 198–229 |