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:
223ID:
C8CF05F8
- Parameters:
- offset (
int32-bit): Offset of message entity within message (in UTF-16 code units)
- length (
int32-bit): Length of message entity within message (in UTF-16 code units)
- document_id (
int64-bit): Document ID of the custom emoji, use messages.getCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents.
- offset (
TL Schema
messageEntityCustomEmoji#c8cf05f8
offset:int
length:int
document_id:long
= MessageEntity
Parameter Tree
MessageEntityCustomEmoji
├── offset →
int├── length →
int└── document_id →
longExample
MessageEntityCustomEmoji(
offset=0,
length=0,
document_id=0,
)