Skip to content

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

Class: ReactionTypeEmoji

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

The reaction is based on an emoji.

Documentation

Extends

  • ReactionType

Constructors

Constructor

new ReactionTypeEmoji(payload): ReactionTypeEmoji

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

Parameters

ParameterType
payloadTelegramReactionTypeEmoji

Returns

ReactionTypeEmoji

Overrides

ReactionType.constructor

Properties

PropertyTypeOverridesDefined in
payloadTelegramReactionTypeEmojiReactionType.payloadcontexts/index.d.ts:4261

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

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

MDN

Returns

string

Inherited from

ReactionType.[toStringTag]


emoji

Get Signature

get emoji(): TelegramReactionTypeEmojiEmoji

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

Reaction emoji. Currently, it can be one of "👍", "👎", "❤", "🔥", "🥰", "👏", "😁", "🤔", "🤯", "😱", "🤬", "😢", "🎉", "🤩", "🤮", "💩", "🙏", "👌", "🕊", "🤡", "🥱", "🥴", "😍", "🐳", "❤‍🔥", "🌚", "🌭", "💯", "🤣", "⚡", "🍌", "🏆", "💔", "🤨", "😐", "🍓", "🍾", "💋", "🖕", "😈", "😴", "😭", "🤓", "👻", "👨‍💻", "👀", "🎃", "🙈", "😇", "😨", "🤝", "✍", "🤗", "🫡", "🎅", "🎄", "☃", "💅", "🤪", "🗿", "🆒", "💘", "🙉", "🦄", "😘", "💊", "🙊", "😎", "👾", "🤷‍♂", "🤷", "🤷‍♀", "😡"

Returns

TelegramReactionTypeEmojiEmoji


type

Get Signature

get type(): "emoji"

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

Type of the reaction, always emoji

Returns

"emoji"

Methods

is()

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

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

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