telegram api constructor · layer 229 · #c8cf05f8

messageEntityCustomEmoji

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.

definition

messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity;

parameters

nametypedescription
offsetintOffset of message entity within message (in UTF-16 code units)
lengthintLength of message entity within message (in UTF-16 code units)
document_idlongDocument ID of the custom emoji, use messages.getCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents.

type

MessageEntity · 24 other constructors

history

present in layers 144–229

idlayers
#c8cf05f8144–229