RichBlockPreformatted

class pyrogram.types.RichBlockPreformatted[source]

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

Parameters:
  • text (RichText) – Text of the block.

  • language (str, optional) – The programming language of the text.