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
| 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) |
DocumentID | int64 | yes | Document ID of the custom emoji, use messages.getCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents. |
References
- Official documentation
- Generated Go reference
- TL definition:
messageEntityCustomEmoji#c8cf05f8