MessageReactionUpdated

class aiogram.types.message_reaction_updated.MessageReactionUpdated(*, chat: Chat, message_id: int, date: _datetime_serializer, return_type=int, when_used=unless - none)], old_reaction: list[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid], new_reaction: list[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid], user: User | None = None, actor_chat: Chat | None = None, **extra_data: Any)[source]

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

Source: https://core.telegram.org/bots/api#messagereactionupdated

chat: Chat

The chat containing the message the user reacted to

message_id: int

Unique identifier of the message inside the chat

date: DateTime

Date of the change in Unix time

old_reaction: list[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid]

Previous list of reaction types that were set by the user

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

new_reaction: list[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid]

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

user: User | None

Optional. The user that changed the reaction, if the user isn’t anonymous

actor_chat: Chat | None

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