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

44 lines
1.2 KiB
Markdown

---
title: decryptedMessageMediaPhoto
description: Photo attached to an encrypted message.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: decryptedMessageMediaPhoto\_8
[Back to constructors index](index.md)
Photo attached to an encrypted message.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|thumb|[bytes](../types/bytes.md) | Yes|Content of thumbnail file (JPEGfile, quality 55, set in a square 90x90)|
|thumb\_w|[int](../types/int.md) | Yes|Thumbnail width|
|thumb\_h|[int](../types/int.md) | Yes|Thumbnail height|
|w|[int](../types/int.md) | Yes|Photo width|
|h|[int](../types/int.md) | Yes|Photo height|
|size|[int](../types/int.md) | Yes|Size of the photo in bytes|
### Type: [DecryptedMessageMedia](../types/DecryptedMessageMedia.md)
### Example:
```php
$decryptedMessageMediaPhoto_8 = ['_' => 'decryptedMessageMediaPhoto', 'thumb' => 'bytes', 'thumb_w' => int, 'thumb_h' => int, 'w' => int, 'h' => int, 'size' => int];
```
Or, if you're into Lua:
```lua
decryptedMessageMediaPhoto_8={_='decryptedMessageMediaPhoto', thumb='bytes', thumb_w=int, thumb_h=int, w=int, h=int, size=int}
```