Layer 224
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

MessageEntity

Gogram Example

// Creating MessageEntityCustomEmoji constructor
obj := &tg.MessageEntityCustomEmoji{
    Offset: 42,
    Length: 42,
    DocumentId: int64(1234567890),
}