@@ -284,6 +284,9 @@ class Message(Object, Update):
284284 Additional interface options. An object for an inline keyboard, custom reply keyboard,
285285 instructions to remove reply keyboard or to force a reply from the user.
286286
287+ reactions (List of :obj:`~pyrogram.types.Reaction`):
288+ List of the reactions to this message.
289+
287290 link (``str``, *property*):
288291 Generate a link to this message, only for groups and channels.
289292 """
@@ -361,7 +364,8 @@ def __init__(
361364 "types.ReplyKeyboardMarkup" ,
362365 "types.ReplyKeyboardRemove" ,
363366 "types.ForceReply"
364- ] = None
367+ ] = None ,
368+ reactions : List ["types.Reaction" ] = None
365369 ):
366370 super ().__init__ (client )
367371
@@ -428,6 +432,7 @@ def __init__(
428432 self .voice_chat_started = voice_chat_started
429433 self .voice_chat_ended = voice_chat_ended
430434 self .voice_chat_members_invited = voice_chat_members_invited
435+ self .reactions = reactions
431436
432437 @staticmethod
433438 async def _parse (
@@ -721,6 +726,9 @@ async def _parse(
721726 from_user = types .User ._parse (client , users .get (user_id , None ))
722727 sender_chat = types .Chat ._parse (client , message , users , chats , is_chat = False ) if not from_user else None
723728
729+ reactions = [types .Reaction (emoji = r .reaction , count = r .count , chosen = r .chosen )
730+ for r in message .reactions .results ] if message .reactions else None
731+
724732 parsed_message = Message (
725733 message_id = message .id ,
726734 date = message .date ,
@@ -780,6 +788,7 @@ async def _parse(
780788 via_bot = types .User ._parse (client , users .get (message .via_bot_id , None )),
781789 outgoing = message .out ,
782790 reply_markup = reply_markup ,
791+ reactions = reactions ,
783792 client = client
784793 )
785794
0 commit comments