Message entity representing a preformatted codeblock
, allowing the user to specify a programming language for the codeblock.
Constructor schema is available as of layer 34. Switch ยป
Name | Type | Description |
---|---|---|
offset | int | Offset of message entity within message (in UTF-16 code units) |
length | int | Length of message entity within message (in UTF-16 code units) |
language | string | Programming language of the code |
How to create styled text with message entities