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

1.0 KiB

title description image
messageMediaDocument Document (video, audio, voice, sticker, any media type except photo) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageMediaDocument

Back to constructors index

Document (video, audio, voice, sticker, any media type except photo)

Attributes:

Name Type Required Description
document Document Optional Attached document
caption string Optional Caption
ttl_seconds int Optional Time to live of self-destructing document

Type: MessageMedia

Example:

$messageMediaDocument = ['_' => 'messageMediaDocument', 'document' => Document, 'caption' => 'string', 'ttl_seconds' => int];

Or, if you're into Lua:

messageMediaDocument={_='messageMediaDocument', document=Document, caption='string', ttl_seconds=int}