Link Search Menu Expand Document

Constructor: inputMessageEntityMentionName

Back to constructors index

Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead.

Attributes:

NameTypeRequiredDescription
offsetintYesOffset of message entity within message (in UTF-8 codepoints)
lengthintYesLength of message entity within message (in UTF-8 codepoints)
user_idInputUserOptionalIdentifier of the user that was mentioned

Type: MessageEntity

Example:

$inputMessageEntityMentionName = ['_' => 'inputMessageEntityMentionName', 'offset' => int, 'length' => int, 'user_id' => InputUser];