MadelineProtoDocs/old_docs/API_docs_v16/constructors/documentAttributeVideo.md
2020-06-16 17:50:25 +02:00

849 B

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

Constructor: documentAttributeVideo

Back to constructors index

Defines a video

Attributes:

Name Type Required Description
duration int Optional Duration in seconds
w int Optional Video width
h int Optional Video height

Type: DocumentAttribute

Example:

$documentAttributeVideo = ['_' => 'documentAttributeVideo', 'duration' => int, 'w' => int, 'h' => int];

Or, if you're into Lua:

documentAttributeVideo={_='documentAttributeVideo', duration=int, w=int, h=int}