Layer 224
MessageEntityPre
Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.
constructor
Parameters
| 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 |
Returns
MessageEntityGogram Example
// Creating MessageEntityPre constructor obj := &tg.MessageEntityPre{ Offset: 42, Length: 42, Language: "Hello, World!", }