MadelineProtoDocs/docs/API_docs/constructors/documentAttributeImageSize.md
2019-12-27 17:48:04 +01:00

873 B

title description image
documentAttributeImageSize Defines the width and height of an image uploaded as document https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: documentAttributeImageSize

Back to constructors index

Defines the width and height of an image uploaded as document

Attributes:

Name Type Required Description
w int Optional Width of image
h int Optional Height of image

Type: DocumentAttribute

Example:

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

Or, if you're into Lua:

documentAttributeImageSize={_='documentAttributeImageSize', w=int, h=int}