mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-15 01:46:55 +01:00
1.6 KiB
1.6 KiB
title | description |
---|---|
video | Describes video file |
Constructor: video
Describes video file
Attributes:
Name | Type | Required | Description |
---|---|---|---|
duration | int | Yes | Duration of the video in seconds as defined by sender |
width | int | Yes | Video width as defined by sender |
height | int | Yes | Video height as defined by sender |
file_name | string | Yes | Original name of a file as defined by sender |
mime_type | string | Yes | MIME type of a file as defined by sender |
has_stickers | Bool | Yes | True, if some stickers was added to the photo |
thumb | photoSize | Yes | Video thumb as defined by sender, nullable |
video | file | Yes | File with the video |
Type: Video
Example:
$video = ['_' => 'video', 'duration' => int, 'width' => int, 'height' => int, 'file_name' => 'string', 'mime_type' => 'string', 'has_stickers' => Bool, 'thumb' => photoSize, 'video' => file];
PWRTelegram json-encoded version:
{"_": "video", "duration": int, "width": int, "height": int, "file_name": "string", "mime_type": "string", "has_stickers": Bool, "thumb": photoSize, "video": file}
Or, if you're into Lua:
video={_='video', duration=int, width=int, height=int, file_name='string', mime_type='string', has_stickers=Bool, thumb=photoSize, video=file}