MessageReactionUpdated

class pyrogram.types.MessageReactionUpdated

This object represents a change of a reaction on a message performed by a user. A reaction to a message was changed by a user. The update isn’t received for reactions set by bots.

These updates are heavy and their changes may be delayed by a few minutes.

Parameters:
  • chat (:obj:`~pyrogram.types.Chat`) – The chat containing the message the user reacted to

  • message_id (``int``) – Unique identifier of the message inside the chat

  • user (:obj:`~pyrogram.types.User`, *optional*) – The user that changed the reaction, if the user isn’t anonymous

  • actor_chat (:obj:`~pyrogram.types.Chat`, *optional*) – The chat on behalf of which the reaction was changed, if the user is anonymous

  • date (:py:obj:`~datetime.datetime`) – Date of change of the reaction

  • old_reaction (:obj:`~pyrogram.types.ReactionType`) – Previous list of reaction types that were set by the user

  • new_reaction (:obj:`~pyrogram.types.ReactionType`) – New list of reaction types that have been set by the user