MadelineProtoDocs/docs/API_docs/constructors/messageEntityCode.md
2024-05-01 14:53:46 +02:00

962 B

title description nav_exclude image
messageEntityCode Message entity representing a codeblock. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: messageEntityCode

Back to constructors index

Message entity representing a codeblock.

Attributes:

Name Type Required Description
offset int Yes Offset of message entity within message (in UTF-16 code units)
length int Yes Length of message entity within message (in UTF-16 code units)

Type: MessageEntity

Example:

$messageEntityCode = ['_' => 'messageEntityCode', 'offset' => int, 'length' => int];