MadelineProtoDocs/old_docs/API_docs_v86/constructors/inputMessageEntityMentionName.md
2019-12-27 17:48:04 +01:00

1.4 KiB

title: inputMessageEntityMentionName description: Message entity that can be used to create a user user mention: received mentions use the messageEntityMentionName constructor, instead. image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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:

Name Type Required Description
offset int Yes Offset of message entity within message (in UTF-8 codepoints)
length int Yes Length of message entity within message (in UTF-8 codepoints)
user_id InputUser Optional Identifier of the user that was mentioned

Type: MessageEntity

Example:

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

Or, if you're into Lua:

inputMessageEntityMentionName={_='inputMessageEntityMentionName', offset=int, length=int, user_id=InputUser}