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

# ReactionCount

class telegram.ReactionCount(type, total_count, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This class represents a reaction added to a message along with the number of times it was added.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if the `type` and `total_count` is equal.

  Available In

  `telegram.MessageReactionCountUpdated.reactions`

  New in version 20.8.

  Parameters:

    - type (`telegram.ReactionType`) – Type of the reaction.

    - total_count (`int`) – Number of times the reaction was added.

  type

    Type of the reaction.

    Type:

      `telegram.ReactionType`

  total_count

    Number of times the reaction was added.

    Type:

      `int`

  classmethod de_json(data, bot)

    See `telegram.TelegramObject.de_json()`.