2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: messageMediaPhoto
|
|
|
|
description: messageMediaPhoto attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: messageMediaPhoto
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|photo|[Photo](../types/Photo.md) | Yes|
|
|
|
|
|caption|[string](../types/string.md) | Yes|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [MessageMedia](../types/MessageMedia.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$messageMediaPhoto = ['_' => 'messageMediaPhoto', 'photo' => Photo, 'caption' => string, ];
|
|
|
|
```
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
messageMediaPhoto={_='messageMediaPhoto', photo=Photo, caption=string, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|