MadelineProtoDocs/docs/API_docs/constructors/pageBlockPreformatted.md

831 B

title description image
pageBlockPreformatted Preformatted (`<pre>` text) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pageBlockPreformatted

Back to constructors index

Preformatted (<pre> text)

Attributes:

Name Type Required Description
text RichText Yes Text
language string Yes Programming language of preformatted text

Type: PageBlock

Example:

$pageBlockPreformatted = ['_' => 'pageBlockPreformatted', 'text' => RichText, 'language' => 'string'];

Or, if you're into Lua:

pageBlockPreformatted={_='pageBlockPreformatted', text=RichText, language='string'}