MadelineProtoDocs/old_docs/API_docs_v2/constructors/documentAttributeVideo.md

41 lines
849 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: documentAttributeVideo
description: Defines a video
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: documentAttributeVideo
[Back to constructors index](index.md)
Defines a video
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|duration|[int](../types/int.md) | Optional|Duration in seconds|
|w|[int](../types/int.md) | Optional|Video width|
|h|[int](../types/int.md) | Optional|Video height|
### Type: [DocumentAttribute](../types/DocumentAttribute.md)
### Example:
```php
$documentAttributeVideo = ['_' => 'documentAttributeVideo', 'duration' => int, 'w' => int, 'h' => int];
```
Or, if you're into Lua:
```lua
documentAttributeVideo={_='documentAttributeVideo', duration=int, w=int, h=int}
```