2017-01-25 23:16:22 +01:00
|
|
|
---
|
|
|
|
title: pageBlockPhoto
|
|
|
|
description: pageBlockPhoto attributes, type and example
|
|
|
|
---
|
|
|
|
## Constructor: pageBlockPhoto
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required |
|
|
|
|
|----------|:-------------:|---------:|
|
2017-03-11 19:54:51 +01:00
|
|
|
|photo\_id|[long](../types/long.md) | Yes|
|
|
|
|
|caption|[RichText](../types/RichText.md) | Yes|
|
2017-01-25 23:16:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PageBlock](../types/PageBlock.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```
|
|
|
|
$pageBlockPhoto = ['_' => 'pageBlockPhoto', 'photo_id' => long, 'caption' => RichText, ];
|
|
|
|
```
|
|
|
|
|
2017-07-23 16:11:02 +02:00
|
|
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
|
|
|
|
|
|
|
```
|
|
|
|
{"_":"pageBlockPhoto","photo_id":"long","caption":"RichText"}
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
pageBlockPhoto={_='pageBlockPhoto', photo_id=long, caption=RichText, }
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|