GramIO API Reference / @gramio/contexts/dist / ReactionTypeEmoji
Class: ReactionTypeEmoji
Defined in: contexts/index.d.ts:4260
The reaction is based on an emoji.
Extends
ReactionType
Constructors
Constructor
new ReactionTypeEmoji(
payload):ReactionTypeEmoji
Defined in: contexts/index.d.ts:4262
Parameters
| Parameter | Type |
|---|---|
payload | TelegramReactionTypeEmoji |
Returns
ReactionTypeEmoji
Overrides
ReactionType.constructor
Properties
| Property | Type | Overrides | Defined in |
|---|---|---|---|
payload | TelegramReactionTypeEmoji | ReactionType.payload | contexts/index.d.ts:4261 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:4290
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
| Parameter | Type |
|---|---|
type | T |
Returns
this is ReactionTypeMapping[T]
Inherited from
ReactionType.is