Link Search Menu Expand Document

Constructor: messageEntityMention

Back to constructors index

Message entity mentioning a user by @username; messageEntityMentionName can also be used to mention users by their ID.

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:

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