Skip to content

Commit 6c45992

Browse files
added reactiontypepaid
1 parent d621647 commit 6c45992

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

telebot/types.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8465,6 +8465,27 @@ def to_dict(self) -> dict:
84658465
return json_dict
84668466

84678467

8468+
class ReactionTypePaid(ReactionType):
8469+
"""
8470+
This object represents a paid reaction type.
8471+
8472+
Telegram documentation: https://core.telegram.org/bots/api#reactiontypepaid
8473+
8474+
:param type: Type of the reaction, must be paid
8475+
:type type: :obj:`str`
8476+
8477+
:return: Instance of the class
8478+
:rtype: :class:`ReactionTypePaid`
8479+
"""
8480+
8481+
def __init__(self, **kwargs) -> None:
8482+
super().__init__('paid')
8483+
8484+
def to_dict(self) -> dict:
8485+
return super().to_dict()
8486+
8487+
8488+
84688489
class MessageReactionUpdated(JsonDeserializable):
84698490
"""
84708491
This object represents a service message about a change in the list of the current user's reactions to a message.

0 commit comments

Comments
 (0)