MadelineProtoDocs/old_docs/API_docs_v102/constructors/inputSingleMedia.md
2019-12-27 17:48:04 +01:00

1.1 KiB

title description image
inputSingleMedia A single media in an album sent with [messages.sendMultiMedia](../methods/messages.sendMultiMedia.md). https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: inputSingleMedia

Back to constructors index

A single media in an album sent with messages.sendMultiMedia.

Attributes:

Name Type Required Description
media MessageMedia, Message, Update or InputMedia Optional The media
message string Yes A caption for the media
entities Array of MessageEntity Optional Entities

Type: InputSingleMedia

Example:

$inputSingleMedia = ['_' => 'inputSingleMedia', 'media' => InputMedia, 'message' => 'string', 'entities' => [MessageEntity, MessageEntity]];

Or, if you're into Lua:

inputSingleMedia={_='inputSingleMedia', media=InputMedia, message='string', entities={MessageEntity}}