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

49 lines
1.0 KiB
Markdown

---
title: photoSize
description: Photo size
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: photoSize
[Back to constructors index](index.md)
Photo size
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|type|[string](../types/string.md) | Yes|Type|
|location|[FileLocation](../types/FileLocation.md) | Yes|Location|
|w|[int](../types/int.md) | Yes|Width|
|h|[int](../types/int.md) | Yes|Height|
|size|[int](../types/int.md) | Yes|Size|
### Type: [PhotoSize](../types/PhotoSize.md)
### Example:
```php
$photoSize = ['_' => 'photoSize', 'type' => 'string', 'location' => FileLocation, 'w' => int, 'h' => int, 'size' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "photoSize", "type": "string", "location": FileLocation, "w": int, "h": int, "size": int}
```
Or, if you're into Lua:
```lua
photoSize={_='photoSize', type='string', location=FileLocation, w=int, h=int, size=int}
```