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'];