Layer 220
MessageEntityCustomEmoji
Represents a custom emoji. Note that this entity must wrap exactly one regular emoji (the one contained in document Attribute Custom Emoji. alt ) in the related text, otherwise the server will ignore it.
constructor
Parameters
| Name | Type | Description |
|---|---|---|
| Offset | int | Offset of message entity within message (in UTF-16 code units ) |
| Length | int | Length of message entity within message (in UTF-16 code units ) |
| DocumentId | long | Document ID of the custom emoji, use messages. get Custom Emoji Documents to fetch the emoji animation and the actual emoji it represents. |
Returns
MessageEntityGogram Example
// Creating MessageEntityCustomEmoji constructor obj := &tg.MessageEntityCustomEmoji{ Offset: 0, Length: 0, DocumentId: int64(0), }