mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.2 KiB
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
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'];