MadelineProtoDocs/docs/API_docs/constructors/messageEntityPre.md
2024-05-01 14:53:46 +02:00

1.2 KiB

title description nav_exclude image
messageEntityPre Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageEntityPre

Back to constructors index

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

Attributes:

Name Type Required Description
offset int Yes Offset of message entity within message (in UTF-16 code units)
length int Yes Length of message entity within message (in UTF-16 code units)
language string Yes Programming language of the code

Type: MessageEntity

Example:

$messageEntityPre = ['_' => 'messageEntityPre', 'offset' => int, 'length' => int, 'language' => 'string'];