1.4 KiB
1.4 KiB
title | description | image |
---|---|---|
inputMediaUploadedDocument | New document | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Constructor: inputMediaUploadedDocument
New document
Attributes:
Name | Type | Required | Description |
---|---|---|---|
file | File path or InputFile | Yes | The uploaded file |
mime_type | string | Optional | MIME type of document |
attributes | Array of DocumentAttribute | Yes | Attributes that specify the type of the document (video, audio, voice, sticker, etc.) |
caption | string | Yes | |
stickers | Array of MessageMedia, Message, Update or InputDocument | Optional | Attached stickers |
Type: InputMedia
Example:
$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument, InputDocument]];
Or, if you're into Lua:
inputMediaUploadedDocument={_='inputMediaUploadedDocument', file=InputFile, mime_type='string', attributes={DocumentAttribute}, caption='string', stickers={InputDocument}}