Skip to content

GramIO API Reference / @gramio/contexts/dist / ReactionTypeCustomEmoji

Class: ReactionTypeCustomEmoji ​

Defined in: contexts/index.d.ts:4754

The reaction is based on a custom emoji.

Documentation

Extends ​

  • ReactionType

Constructors ​

Constructor ​

new ReactionTypeCustomEmoji(payload): ReactionTypeCustomEmoji

Defined in: contexts/index.d.ts:4756

Parameters ​

ParameterType
payloadTelegramReactionTypeCustomEmoji

Returns ​

ReactionTypeCustomEmoji

Overrides ​

ReactionType.constructor

Properties ​

PropertyTypeOverridesDefined in
payloadTelegramReactionTypeCustomEmojiReactionType.payloadcontexts/index.d.ts:4755

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:4798

MDN

Returns ​

string

Inherited from ​

ReactionType.[toStringTag]


customEmoji ​

Get Signature ​

get customEmoji(): string

Defined in: contexts/index.d.ts:4760

Custom emoji identifier

Returns ​

string


type ​

Get Signature ​

get type(): "custom_emoji"

Defined in: contexts/index.d.ts:4758

Type of the reaction, always custom_emoji

Returns ​

"custom_emoji"

Methods ​

is() ​

is<T>(type): this is ReactionTypeMapping[T]

Defined in: contexts/index.d.ts:4800

Is this reaction type the same as the type?

Type Parameters ​

Type Parameter
T extends "custom_emoji" | "emoji" | "paid"

Parameters ​

ParameterType
typeT

Returns ​

this is ReactionTypeMapping[T]

Inherited from ​

ReactionType.is