File tree Expand file tree Collapse file tree
pyrogram/types/messages_and_media Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments