Skip to content

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

Class: ReactionTypeEmoji ​

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

The reaction is based on an emoji.

Documentation

Extends ​

  • ReactionType

Constructors ​

Constructor ​

new ReactionTypeEmoji(payload): ReactionTypeEmoji

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

Parameters ​

ParameterType
payloadTelegramReactionTypeEmoji

Returns ​

ReactionTypeEmoji

Overrides ​

ReactionType.constructor

Properties ​

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

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string

Inherited from ​

ReactionType.[toStringTag]


emoji ​

Get Signature ​

get emoji(): TelegramReactionTypeEmojiEmoji

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

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

Returns ​

TelegramReactionTypeEmojiEmoji


type ​

Get Signature ​

get type(): "emoji"

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

Type of the reaction, always emoji

Returns ​

"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