class aiogram.types.message_reaction_updated.MessageReactionUpdated(*, chat: Chat, message_id: int, date: datetime, old_reaction: List[ReactionTypeEmoji | ReactionTypeCustomEmoji], new_reaction: List[ReactionTypeEmoji | ReactionTypeCustomEmoji], 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.


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]#

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(_ModelMetaclass__context: Any) None#

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

new_reaction: List[ReactionTypeEmoji | ReactionTypeCustomEmoji]#

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