ReactionType

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

Bases: telegram.TelegramObject

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

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[source]

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

Type:

str

CUSTOM_EMOJI = 'custom_emoji'[source]

telegram.constants.ReactionType.CUSTOM_EMOJI

EMOJI = 'emoji'[source]

telegram.constants.ReactionType.EMOJI

PAID = 'paid'[source]

telegram.constants.ReactionType.PAID

Added in version 21.5.

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().