Skip to content

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

Class: MessageReactionUpdated ​

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

This object represents a change of a reaction on a message performed by a user.

Extended by ​

Constructors ​

Constructor ​

new MessageReactionUpdated(payload): MessageReactionUpdated

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

Parameters ​

ParameterType
payloadTelegramMessageReactionUpdated

Returns ​

MessageReactionUpdated

Properties ​

PropertyTypeDefined in
payloadTelegramMessageReactionUpdatedcontexts/index.d.ts:4821

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

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

MDN

Returns ​

string


actorChat ​

Get Signature ​

get actorChat(): Chat

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

The chat on behalf of which the reaction was changed, if the user is anonymous

Returns ​

Chat


chat ​

Get Signature ​

get chat(): Chat

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

The chat containing the message the user reacted to

Returns ​

Chat


date ​

Get Signature ​

get date(): number

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

Date of the change in Unix time

Returns ​

number


id ​

Get Signature ​

get id(): number

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

Unique identifier of the message inside the chat

Returns ​

number


newReactions ​

Get Signature ​

get newReactions(): TelegramReactionType[]

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

New list of reaction types that have been set by the user

Returns ​

TelegramReactionType[]


oldReactions ​

Get Signature ​

get oldReactions(): TelegramReactionType[]

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

Previous list of reaction types that were set by the user

Returns ​

TelegramReactionType[]


user ​

Get Signature ​

get user(): User

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

The user that changed the reaction, if the user isn't anonymous

Returns ​

User