Constructor: messageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
Attributes:
Name | Type | Required | Description |
---|---|---|---|
nopremium | Bool | Optional | Whether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played. |
spoiler | Bool | Optional | Whether this media should be hidden behind a spoiler warning |
video | Bool | Optional | Whether this is a video. |
round | Bool | Optional | Whether this is a round video. |
voice | Bool | Optional | Whether this is a voice message. |
document | Document | Optional | Attached document |
alt_documents | Array of Document | Optional | |
ttl_seconds | int | Optional | Time to live of self-destructing document |
Type: MessageMedia
Example:
$messageMediaDocument = ['_' => 'messageMediaDocument', 'nopremium' => Bool, 'spoiler' => Bool, 'video' => Bool, 'round' => Bool, 'voice' => Bool, 'document' => Document, 'alt_documents' => [Document, Document], 'ttl_seconds' => int];