Link Search Menu Expand Document

Constructor: messageEntityCustomEmoji

Back to constructors index

Represents a custom emoji.
Note that this entity must wrap exactly one regular emoji (the one contained in documentAttributeCustomEmoji.alt) in the related text, otherwise the server will ignore it.

Attributes:

NameTypeRequiredDescription
offsetintYesOffset of message entity within message (in UTF-16 code units)
lengthintYesLength of message entity within message (in UTF-16 code units)
document_idlongYesDocument ID of the custom emoji, use messages.getCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents.

Type: MessageEntity

Example:

$messageEntityCustomEmoji = ['_' => 'messageEntityCustomEmoji', 'offset' => int, 'length' => int, 'document_id' => long];