MadelineProtoDocs/old_docs/API_docs_v65/constructors/pageBlockPreformatted.md

44 lines
816 B
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: pageBlockPreformatted
2018-04-01 13:24:46 +02:00
description: pageBlockPreformatted attributes, type and example
2018-04-01 13:19:25 +02:00
---
## Constructor: pageBlockPreformatted
[Back to constructors index](index.md)
### Attributes:
2018-04-01 13:24:46 +02:00
| Name | Type | Required |
|----------|---------------|----------|
|text|[RichText](../types/RichText.md) | Yes|
|language|[string](../types/string.md) | Yes|
2018-04-01 13:19:25 +02:00
### Type: [PageBlock](../types/PageBlock.md)
### Example:
```
$pageBlockPreformatted = ['_' => 'pageBlockPreformatted', 'text' => RichText, 'language' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "pageBlockPreformatted", "text": RichText, "language": "string"}
```
Or, if you're into Lua:
```
pageBlockPreformatted={_='pageBlockPreformatted', text=RichText, language='string'}
```