mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-03 10:08:28 +01:00
31 lines
829 B
Markdown
31 lines
829 B
Markdown
|
---
|
||
|
title: "documentAttributeImageSize"
|
||
|
description: "Defines the width and height of an image uploaded as document"
|
||
|
nav_exclude: true
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
---
|
||
|
# Constructor: documentAttributeImageSize
|
||
|
[Back to constructors index](/API_docs/constructors/index.html)
|
||
|
|
||
|
|
||
|
|
||
|
Defines the width and height of an image uploaded as document
|
||
|
|
||
|
### Attributes:
|
||
|
|
||
|
| Name | Type | Required | Description |
|
||
|
|----------|---------------|----------|-------------|
|
||
|
|w|[int](/API_docs/types/int.html) | Optional|Width of image|
|
||
|
|h|[int](/API_docs/types/int.html) | Optional|Height of image|
|
||
|
|
||
|
|
||
|
|
||
|
### Type: [DocumentAttribute](/API_docs/types/DocumentAttribute.html)
|
||
|
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
```
|
||
|
$documentAttributeImageSize = ['_' => 'documentAttributeImageSize', 'w' => int, 'h' => int];
|
||
|
```
|