MadelineProtoDocs/old_docs/API_docs_v21/constructors/pageBlockCollage.md

40 lines
779 B
Markdown
Raw Normal View History

2020-06-16 17:50:25 +02:00
---
title: pageBlockCollage
description: Collage of media
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: pageBlockCollage
[Back to constructors index](index.md)
Collage of media
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|items|Array of [PageBlock](../types/PageBlock.md) | Yes|Media elements|
|caption|[RichText](../types/RichText.md) | Yes|
### Type: [PageBlock](../types/PageBlock.md)
### Example:
```php
$pageBlockCollage = ['_' => 'pageBlockCollage', 'items' => [PageBlock, PageBlock], 'caption' => RichText];
```
Or, if you're into Lua:
```lua
pageBlockCollage={_='pageBlockCollage', items={PageBlock}, caption=RichText}
```