Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# MessageReactionCountUpdated

class telegram.MessageReactionCountUpdated(chat, message_id, date, reactions, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This class represents reaction changes on a message with anonymous reactions.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if the `chat`, `message_id`, `date` and `reactions` is equal.

  Available In

  `telegram.Update.message_reaction_count`

  New in version 20.8.

  Parameters:

    - chat (`telegram.Chat`) – The chat containing the message.

    - message_id (`int`) – Unique message identifier inside the chat.

    - date (`datetime.datetime`) – Date of the change in Unix time The default timezone of the bot is used for localization, which is UTC unless `telegram.ext.Defaults.tzinfo` is used.

    - reactions (Sequence[`telegram.ReactionCount`]) – List of reactions that are present on the message

  chat

    The chat containing the message.

    Type:

      `telegram.Chat`

  message_id

    Unique message identifier inside the chat.

    Type:

      `int`

  date

    Date of the change in Unix time The default timezone of the bot is used for localization, which is UTC unless `telegram.ext.Defaults.tzinfo` is used.

    Type:

      `datetime.datetime`

  reactions

    List of reactions that are present on the message

    Type:

      Tuple[`telegram.ReactionCount`]

  classmethod de_json(data, bot)

    See `telegram.TelegramObject.de_json()`.