1.1 KiB
1.1 KiB
title | description | image |
---|---|---|
messageEntityPre | Message entity representing a preformatted `codeblock`, allowing the user to specify a programming language for the codeblock. | 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-8 codepoints) |
length | int | Yes | Length of message entity within message (in UTF-8 codepoints) |
language | string | Yes | Programming language of the code |
Type: MessageEntity
Example:
$messageEntityPre = ['_' => 'messageEntityPre', 'offset' => int, 'length' => int, 'language' => 'string'];
Or, if you're into Lua:
messageEntityPre={_='messageEntityPre', offset=int, length=int, language='string'}