Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>MessageEntityCustomEmoji_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class MessageEntityCustomEmoji_
import { MessageEntityCustomEmoji_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

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.

Constructors

new
MessageEntityCustomEmoji_(params: { offset: number; length: number; document_id: bigint; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
document_id: bigint

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

length: number

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

offset: number

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

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc