mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-11 16:50:37 +01:00
32 lines
815 B
Markdown
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];
|
||
|
```
|