MadelineProtoDocs/docs/API_docs/constructors/documentAttributeVideo_23.md
2024-05-01 14:53:46 +02:00

32 lines
815 B
Markdown

---
title: "documentAttributeVideo"
description: "Defines a video"
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: documentAttributeVideo\_23
[Back to constructors index](/API_docs/constructors/index.html)
Defines a video
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|duration|[int](/API_docs/types/int.html) | Optional|Duration in seconds|
|w|[int](/API_docs/types/int.html) | Optional|Video width|
|h|[int](/API_docs/types/int.html) | Optional|Video height|
### Type: [DocumentAttribute](/API_docs/types/DocumentAttribute.html)
### Example:
```
$documentAttributeVideo_23 = ['_' => 'documentAttributeVideo', 'duration' => int, 'w' => int, 'h' => int];
```