Skip to main content

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.

type tg.MessageEntityCustomEmoji struct { /* ... */ }

Implements MessageEntity.

Fields

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

References