Raw.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.
messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity;
export namespace Raw {
export class MessageEntityCustomEmoji {
constructor(params: { offset: number; length: number; documentId: bigint }) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xc8cf05f8
Property
offset
: numberOffset of message entity within message (in utf-16 code units)
length
: numberLength of message entity within message (in utf-16 code units)
documentId
: bigintDocument id of the custom emoji, use messages.getcustomemojidocuments to fetch the emoji animation and the actual emoji it represents.