MadelineProto/docs/TD_docs/constructors/messageEntityPreCode.md
Daniil Gentili 9d77dc0919 AMP fixes
2017-08-20 09:05:56 +00:00

1.1 KiB

title description
messageEntityPreCode Text needs to be formatted as inside of pre and code HTML tags

Constructor: messageEntityPreCode

Back to constructors index

Text needs to be formatted as inside of pre and code HTML tags

Attributes:

Name Type Required Description
offset int Yes Offset of the entity in UTF-16 code points
length int Yes Length of the entity in UTF-16 code points
language string Yes Language of code as defined by sender

Type: MessageEntity

Example:

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

PWRTelegram json-encoded version:

{"_": "messageEntityPreCode", "offset": int, "length": int, "language": "string"}

Or, if you're into Lua:

messageEntityPreCode={_='messageEntityPreCode', offset=int, length=int, language='string'}