MessageEntityPre

class pyrogram.raw.types.MessageEntityPre

Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.

Constructor type of MessageEntity.

Details
  • Layer: 126

  • ID: 0x73924be0

Parameters
  • offset (int 32-bit) – Offset of message entity within message (in UTF-8 codepoints).

  • length (int 32-bit) – Length of message entity within message (in UTF-8 codepoints).

  • language (str) – Programming language of the code.