MessageEntityCustomEmoji

class pyrogram.raw.types.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.

Constructor of MessageEntity.

Details:
  • Layer: 223

  • ID: C8CF05F8

Parameters:
offset (int 32-bit):

Offset of message entity within message (in UTF-16 code units)

length (int 32-bit):

Length of message entity within message (in UTF-16 code units)

document_id (int 64-bit):

Document ID of the custom emoji, use messages.getCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents.

TL Schema

messageEntityCustomEmoji#c8cf05f8
offset:int
length:int
document_id:long

= MessageEntity

Parameter Tree

MessageEntityCustomEmoji
├── offsetint
├── lengthint
└── document_idlong

Example

MessageEntityCustomEmoji(
    offset=0,
    length=0,
    document_id=0,
)