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

# ReactionType

class telegram.ReactionType(type, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Base class for Telegram ReactionType Objects. There exist `telegram.ReactionTypeEmoji`, `telegram.ReactionTypeCustomEmoji` and `telegram.ReactionTypePaid`.

  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.

  Changed in version 21.5: Added paid reaction.

  Parameters:

    type (`str`) – Type of the reaction. Can be `EMOJI`, `CUSTOM_EMOJI` or `PAID`.

  type

    Type of the reaction. Can be `EMOJI`, `CUSTOM_EMOJI` or `PAID`.

    Type:

      `str`

  CUSTOM_EMOJI = 'custom_emoji'

    `telegram.constants.ReactionType.CUSTOM_EMOJI`

  EMOJI = 'emoji'

    `telegram.constants.ReactionType.EMOJI`

  PAID = 'paid'

    `telegram.constants.ReactionType.PAID`

    Added in version 21.5.

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.