Link Search Menu Expand Document

Constructor: messageEntityPre

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
offsetintYesOffset of message entity within message (in UTF-8 codepoints)
lengthintYesLength of message entity within message (in UTF-8 codepoints)
languagestringYesProgramming language of the code

Type: MessageEntity

Example:

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