Constructor: inputMediaUploadedDocument

Back to constructors index

Media uploaded document


Name Type Required Description
nosound_video Bool Optional Nosound video?
file File path or InputFile Yes File
thumb File path or InputFile Optional Thumbnail
mime_type string Optional Mime type
attributes Array of DocumentAttribute Yes Attributes
stickers Array of MessageMedia, Message, Update or InputDocument Optional Stickers
ttl_seconds int Optional Ttl seconds

Type: InputMedia


$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'nosound_video' => Bool, 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'stickers' => [InputDocument, InputDocument], 'ttl_seconds' => int];

PWRTelegram json-encoded version:

{"_": "inputMediaUploadedDocument", "nosound_video": Bool, "file": InputFile, "thumb": InputFile, "mime_type": "string", "attributes": [DocumentAttribute], "stickers": [InputDocument], "ttl_seconds": int}

Or, if you’re into Lua:

inputMediaUploadedDocument={_='inputMediaUploadedDocument', nosound_video=Bool, file=InputFile, thumb=InputFile, mime_type='string', attributes={DocumentAttribute}, stickers={InputDocument}, ttl_seconds=int}