MadelineProto/old_docs/API_docs_v27/constructors/video.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

---
title: video
description: video attributes, type and example
---
## Constructor: video
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|:-------------:|---------:|
|id|[long](../types/long.md) | Required|
|access\_hash|[long](../types/long.md) | Required|
|user\_id|[int](../types/int.md) | Required|
|date|[int](../types/int.md) | Required|
|caption|[string](../types/string.md) | Required|
|duration|[int](../types/int.md) | Required|
|mime\_type|[string](../types/string.md) | Required|
|size|[int](../types/int.md) | Required|
|thumb|[PhotoSize](../types/PhotoSize.md) | Required|
|dc\_id|[int](../types/int.md) | Required|
|w|[int](../types/int.md) | Required|
|h|[int](../types/int.md) | Required|
### Type: [Video](../types/Video.md)
### Example:
```
$video = ['_' => 'video', 'id' => long, 'access_hash' => long, 'user_id' => int, 'date' => int, 'caption' => string, 'duration' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'w' => int, 'h' => int, ];
```