Link Search Menu Expand Document

Constructor: messageMediaDocument

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
nopremiumBoolOptionalWhether this is a normal sticker, if not set this is a premium sticker and a premium sticker animation must be played.
spoilerBoolOptionalWhether this media should be hidden behind a spoiler warning
videoBoolOptionalWhether this is a video.
roundBoolOptionalWhether this is a round video.
voiceBoolOptionalWhether this is a voice message.
documentDocumentOptionalAttached document
alt_documentsArray of DocumentOptional
ttl_secondsintOptionalTime 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];