Constructor: messageEntityPre

Back to constructors index

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'}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.