MadelineProtoDocs/old_docs/API_docs_v95/constructors/messageMediaPhoto.md

40 lines
793 B
Markdown
Raw Normal View History

2019-03-29 21:12:30 +01:00
---
title: messageMediaPhoto
2019-12-27 17:48:04 +01:00
description: Attached photo.
2019-03-29 21:12:30 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: messageMediaPhoto
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Attached photo.
2019-03-29 21:12:30 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|photo|[Photo](../types/Photo.md) | Optional|Photo|
2019-12-27 17:48:04 +01:00
|ttl\_seconds|[int](../types/int.md) | Optional|Time to live in seconds of self-destructing photo|
2019-03-29 21:12:30 +01:00
### Type: [MessageMedia](../types/MessageMedia.md)
### Example:
```php
$messageMediaPhoto = ['_' => 'messageMediaPhoto', 'photo' => Photo, 'ttl_seconds' => int];
```
Or, if you're into Lua:
```lua
messageMediaPhoto={_='messageMediaPhoto', photo=Photo, ttl_seconds=int}
```