MadelineProtoDocs/docs/API_docs/constructors/documentAttributeImageSize.md

31 lines
829 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
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];
```