Link Search Menu Expand Document

Constructor: inputMediaDocument

Back to constructors index

Forwarded document

Attributes:

NameTypeRequiredDescription
spoilerBoolOptionalWhether this media should be hidden behind a spoiler warning
idMessageMedia, Message, Update or InputDocumentOptionalThe document to be forwarded.
ttl_secondsintOptionalTime to live of self-destructing document
querystringOptionalText query or emoji that was used by the user to find this sticker or GIF: used to improve search result relevance.

Type: InputMedia

Example:

$inputMediaDocument = ['_' => 'inputMediaDocument', 'spoiler' => Bool, 'id' => InputDocument, 'ttl_seconds' => int, 'query' => 'string'];