From 53584bc1dbd19c9b956d9c78932ec792c7744cf3 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 18 Sep 2022 15:44:18 +0200 Subject: [PATCH] Add chosen_order to Reaction --- pyrogram/types/messages_and_media/reaction.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyrogram/types/messages_and_media/reaction.py b/pyrogram/types/messages_and_media/reaction.py index 9d6b9e24..17e08ff5 100644 --- a/pyrogram/types/messages_and_media/reaction.py +++ b/pyrogram/types/messages_and_media/reaction.py @@ -35,6 +35,10 @@ class Reaction(Object): count (``int``, *optional*): Reaction count. + + chosen_order (``int``, *optional*): + Chosen reaction order. + Available for chosen reactions. """ def __init__( @@ -43,13 +47,15 @@ class Reaction(Object): client: "pyrogram.Client" = None, emoji: Optional[str] = None, custom_emoji_id: Optional[int] = None, - count: Optional[int] = None + count: Optional[int] = None, + chosen_order: Optional[int] = None ): super().__init__(client) self.emoji = emoji self.custom_emoji_id = custom_emoji_id self.count = count + self.chosen_order = chosen_order @staticmethod def _parse( @@ -75,5 +81,6 @@ class Reaction(Object): ) -> "Reaction": reaction = Reaction._parse(client, reaction_count.reaction) reaction.count = reaction_count.count + reaction.chosen_order = reaction_count.chosen_order return reaction