Link Search Menu Expand Document

Constructor: messageEntitySpoiler

Back to constructors index

Message entity representing a spoiler

Attributes:

NameTypeRequiredDescription
offsetintYesOffset of message entity within message (in UTF-16 code units)
lengthintYesLength of message entity within message (in UTF-16 code units)

Type: MessageEntity

Example:

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