MadelineProtoDocs/old_docs/API_docs_v25/constructors/video.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.6 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
user_id int Yes User ID
date int Yes Date
caption string Yes Caption
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, 'user_id' => int, 'date' => int, 'caption' => 'string', 'duration' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'w' => int, 'h' => int];

PWRTelegram json-encoded version:

{"_": "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}

Or, if you're into Lua:

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}