Layer 220
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: 0,
    Length: 0,
    DocumentId: int64(0),
}