ReactionType

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

Bases: telegram.TelegramObject

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

New in version 20.8.

Parameters:

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

type[source]

Type of the reaction. Can be EMOJI or CUSTOM_EMOJI.

Type:

str

CUSTOM_EMOJI = 'custom_emoji'[source]

telegram.constants.ReactionType.CUSTOM_EMOJI

EMOJI = 'emoji'[source]

telegram.constants.ReactionType.EMOJI

classmethod de_json(data, bot)[source]

See telegram.TelegramObject.de_json().