# danog\MadelineProto\EventHandler\Message\Rich\Block\Preformatted: A preformatted block (e.g. code).

[Back to index](../../../../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

A preformatted block (e.g. code).  



## Properties
* `$text`: `danog\MadelineProto\EventHandler\Message\Rich\RichText` The text
* `$language`: `string` Programming language of the code, or an empty string

## Method list:
* [`__construct(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $text, string $language = '')`](#__construct)

## Methods:
### <a name="__construct"></a> `__construct(\danog\MadelineProto\EventHandler\Message\Rich\RichText|string $text, string $language = '')`




Parameters:

* `$text`: `\danog\MadelineProto\EventHandler\Message\Rich\RichText|string`   
* `$language`: `string`   


#### See also: 
* [`\danog\MadelineProto\EventHandler\Message\Rich\RichText`: Styled text of a [rich message](https://core.telegram.org/bots/api#richtext): a tree of plain texts, styles, links and so on.](../../../../../../danog/MadelineProto/EventHandler/Message/Rich/RichText.html)




---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
