MadelineProto/docs/TD_docs/constructors/video.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.6 KiB

title description
video Describes video file

Constructor: video

Back to constructors index

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}