Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# ReactionTypeEmoji

class telegram.ReactionTypeEmoji(emoji, *, api_kwargs=None)

  Bases: `telegram.ReactionType`

  Represents a reaction with a normal emoji.

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

  Use In

  `telegram.Bot.set_message_reaction()`

  Available In

  - `telegram.ChatFullInfo.available_reactions`

  - `telegram.MessageReactionUpdated.new_reaction`

  - `telegram.MessageReactionUpdated.old_reaction`

  - `telegram.ReactionCount.type`

  Added in version 20.8.

  Parameters:

    emoji (`str`) – Reaction emoji. It can be one of `telegram.constants.ReactionEmoji`.

  type

    Type of the reaction, always `'emoji'`.

    Type:

      `str`

  emoji

    Reaction emoji. It can be one of

    Type:

      `str`

  :const:`telegram.constants.ReactionEmoji`.