MadelineProtoDocs/docs/API_docs/constructors/messageEntityCustomEmoji.md
2024-05-01 14:53:46 +02:00

1.5 KiB

title description nav_exclude image
messageEntityCustomEmoji Represents a custom emoji. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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:

Name Type Required Description
offset int Yes Offset of message entity within message (in UTF-16 code units)
length int Yes Length of message entity within message (in UTF-16 code units)
document_id long Yes Document 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];