Constructor: inputMediaDocument
Forwarded document
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| spoiler | Bool | Optional | Whether this media should be hidden behind a spoiler warning |
| id | MessageMedia, Message, Update or InputDocument | Optional | The document to be forwarded. |
| video_cover | MessageMedia, Message, Update or InputPhoto | Optional | Custom video cover. |
| video_timestamp | int | Optional | Start playing the video at the specified timestamp (seconds). |
| ttl_seconds | int | Optional | Time to live of self-destructing document |
| query | string | Optional | Text 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, 'video_cover' => InputPhoto, 'video_timestamp' => int, 'ttl_seconds' => int, 'query' => 'string'];