MadelineProtoDocs/old_docs/API_docs_v46/constructors/inputMediaVideo.md

44 lines
785 B
Markdown
Raw Normal View History

2018-04-01 13:24:46 +02:00
---
title: inputMediaVideo
description: inputMediaVideo attributes, type and example
---
## Constructor: inputMediaVideo
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|video|[InputVideo](../types/InputVideo.md) | Optional|
|caption|[string](../types/string.md) | Yes|
### Type: [InputMedia](../types/InputMedia.md)
### Example:
```
$inputMediaVideo = ['_' => 'inputMediaVideo', 'video' => InputVideo, 'caption' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputMediaVideo", "video": InputVideo, "caption": "string"}
```
Or, if you're into Lua:
```
inputMediaVideo={_='inputMediaVideo', video=InputVideo, caption='string'}
```