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: 158

  • 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.