RichBlockPreformatted

class aiogram.types.rich_block_preformatted.RichBlockPreformatted(*, type: Literal[RichBlockType.PRE] = RichBlockType.PRE, text: RichTextUnion, language: str | None = None, **extra_data: Any)[source]

A preformatted text block, corresponding to the nested HTML tags <pre> and <code>.

Source: https://core.telegram.org/bots/api#richblockpreformatted

type: Literal[RichBlockType.PRE]

Type of the block, always ‘pre’

text: RichTextUnion

Text of the block

language: str | None

Optional. The programming language of the text