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

# 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.Chat.available_reactions`

  - `telegram.MessageReactionUpdated.new_reaction`

  - `telegram.MessageReactionUpdated.old_reaction`

  - `telegram.ReactionCount.type`

  New 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`.