MadelineProtoDocs/old_docs/API_docs_v42/constructors/video.md

1.2 KiB

title description image
video Video https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: video

Back to constructors index

Video

Attributes:

Name Type Required Description
id long Yes ID
access_hash long Yes Access hash
date int Yes Date
duration int Yes Duration
mime_type string Yes Mime type
size int Yes Size
thumb PhotoSize Optional Thumbnail
dc_id int Yes DC ID
w int Yes Width
h int Yes Height

Type: Video

Example:

$video = ['_' => 'video', 'id' => long, 'access_hash' => long, 'date' => int, 'duration' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'w' => int, 'h' => int];

Or, if you're into Lua:

video={_='video', id=long, access_hash=long, date=int, duration=int, mime_type='string', size=int, thumb=PhotoSize, dc_id=int, w=int, h=int}