MessageReactionUpdated#

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.

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

Previous list of reaction types that were set by the user

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