Skip to content

Commit 53584bc

Browse files
committed
Add chosen_order to Reaction
1 parent 9f94aee commit 53584bc

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

pyrogram/types/messages_and_media/reaction.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ class Reaction(Object):
3535
3636
count (``int``, *optional*):
3737
Reaction count.
38+
39+
chosen_order (``int``, *optional*):
40+
Chosen reaction order.
41+
Available for chosen reactions.
3842
"""
3943

4044
def __init__(
@@ -43,13 +47,15 @@ def __init__(
4347
client: "pyrogram.Client" = None,
4448
emoji: Optional[str] = None,
4549
custom_emoji_id: Optional[int] = None,
46-
count: Optional[int] = None
50+
count: Optional[int] = None,
51+
chosen_order: Optional[int] = None
4752
):
4853
super().__init__(client)
4954

5055
self.emoji = emoji
5156
self.custom_emoji_id = custom_emoji_id
5257
self.count = count
58+
self.chosen_order = chosen_order
5359

5460
@staticmethod
5561
def _parse(
@@ -75,5 +81,6 @@ def _parse_count(
7581
) -> "Reaction":
7682
reaction = Reaction._parse(client, reaction_count.reaction)
7783
reaction.count = reaction_count.count
84+
reaction.chosen_order = reaction_count.chosen_order
7885

7986
return reaction

0 commit comments

Comments
 (0)