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-16 code units)
lengthintYesLength of message entity within message (in UTF-16 code units)
languagestringYesProgramming language of the code

Type: MessageEntity

Example:

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