Ë
    :É„j$  ã                   ó@   — d dl mZmZ d dlZd dlmZmZ  G d„ d«      Zy)é    )ÚUnionÚListN)ÚrawÚtypesc                   óf   — e Zd Z	 	 	 	 	 ddddeeef   dededeeeeeeef      f   ded	ed
dfd„Zy)ÚSendReactionNÚselfzpyrogram.ClientÚchat_idÚ
message_idÚstory_idÚemojiÚbigÚadd_to_recentÚreturnztypes.MessageReactionsc           	   ƒ   óü  K  — t        |t        «      rc|r^|D �cg c]R  }t        |t        «      r t        j                  j                  |¬«      nt        j                  j                  |¬«      ‘ŒT c}nd}nWt        |t        «      r"t        j                  j                  |¬«      g}n%|r!t        j                  j                  |¬«      gnd}|��| j                  t        j                  j                  j                  | j                  |«      ƒ d{  –—† ||||¬«      «      ƒ d{  –—† }	|	j                  D �ci c]  }|j                  |“Œ }
}|	j                  D �ci c]  }|j                  |“Œ }}|	j                  D ]T  }t        |t        j                  j                   «      sŒ(t        j"                  j%                  | |j&                  |
|«      c S  y|�~| j                  t        j                  j(                  j                  | j                  |«      ƒ d{  –—† ||r t        j                  j                  |¬«      nd|¬«      «      ƒ d{  –—†  yt+        d«      ‚c c}w 7 �ŒV7 �ŒDc c}w c c}w 7 Œ[7 Œ'­w)ui	  Use this method to send reactions on a message/stories.
        Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel.
        Bots can't use paid reactions.
        
        You must use exactly one of ``message_id`` OR ``story_id``.
        
            If you specify, ``message_id``
                .. include:: /_includes/usable-by/users-bots.rst
                
            If you specify, ``story_id``
                .. include:: /_includes/usable-by/users.rst

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                You can also use chat public link in form of *t.me/<username>* (str).

            message_id (``int``, *optional*):
                Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.

            story_id (``int``, *optional*):
                Identifier of the story.

            emoji (``int`` | ``str`` | List of ``int`` | ``str``, *optional*):
                Reaction emoji.
                Pass None as emoji (default) to retract the reaction.
                Pass list of int or str to react multiple emojis.

            big (``bool``, *optional*):
                Pass True to set the reaction with a big animation.
                For message reactions only.
                Defaults to False.
                
            add_to_recent (``bool``, *optional*):
                Pass True if the reaction should appear in the recently used reactions.
                This option is applicable only for users.

        Returns:
            :obj:`~pyrogram.types.MessageReactions`: On success, True is returned.

        Example:
            .. code-block:: python

                # Send a reaction
                await app.send_reaction(chat_id, message_id=message_id, emoji="ðŸ”¥")
                await app.send_reaction(chat_id, story_id=story_id, emoji="ðŸ”¥")

                # Send a multiple reactions
                await app.send_reaction(chat_id, message_id=message_id, emoji=["ðŸ”¥", "â�¤ï¸�"])

                # Retract a reaction
                await app.send_reaction(chat_id, message_id=message_id)
                await app.send_reaction(chat_id, story_id=story_id)
        )Údocument_id)ÚemoticonN)ÚpeerÚmsg_idÚreactionr   r   )r   r   r   r   Tz#You need to pass one of message_id!)Ú
isinstanceÚlistÚintr   r   ÚReactionCustomEmojiÚReactionEmojiÚinvokeÚ	functionsÚmessagesr   Úresolve_peerÚusersÚidÚchatsÚupdatesÚUpdateMessageReactionsÚMessageReactionsÚ_parseÚ	reactionsÚstoriesÚ
ValueError)r	   r
   r   r   r   r   r   Úir   Úrr    r"   s               ú^/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/messages/send_reaction.pyÚsend_reactionzSendReaction.send_reaction   s8  è ø€ ô~ �eœTÔ"ñ ð #ö	ð ô " !¤SÔ)ô —I‘I×1Ñ1¸aÐ1Ô@äŸ™×0Ñ0¸!Ð0Ó<ñ=óð
 !ñ ô ˜%¤Ô%ÜŸI™I×9Ñ9ÀeÐ9ÓLÐM‘áHMœCŸI™I×3Ñ3¸UÐ3ÓCÑDÐSW�ØÑ!Ø—k‘kÜ—‘×&Ñ&×3Ñ3Ø#×0Ñ0°Ó9×9Ø%Ø%ØØ"/ð 4ó ó÷ ˆAð '(§g¡gÖ. �Q—T‘T˜1‘WÐ.ˆEÐ.Ø&'§g¡gÖ. �Q—T‘T˜1‘WÐ.ˆEÐ.Ø—Y‘Yò X�Ü˜AœsŸy™y×?Ñ?Õ@Ü×/Ñ/×6Ñ6°t¸Q¿[¹[È%ÐQVÓWÒWñXð Ð!Ø—+‘+Ü—‘×%Ñ%×2Ñ2Ø#×0Ñ0°Ó9×9Ø%ÙHMœSŸY™Y×4Ñ4¸eÐ4ÔDÐSWØ"/ð	 3ó ó÷ ð ð äÐBÓCÐCùòKð :ùðûò /ùÚ.ð :øðúss   ‚I<™AI#Á0B"I<ÄI(ÄI<Ä'I+Ä(I<Ä:I.ÅI<ÅI3Å25I<Æ(A4I<ÈI8È5I<ÉI:ÉI<É+I<É.I<É:I<)NNNFF)	Ú__name__Ú
__module__Ú__qualname__r   r   Ústrr   Úboolr-   © ó    r,   r   r      s—   „ ð ØØ8<ØØ#ñeDØðeDà�s˜C�x‘ðeDð ðeDð ð	eDð
 �S˜#˜t E¨#¨s¨(¡OÑ4Ð4Ñ5ðeDð ðeDð ðeDð 
"ôeDr4   r   )Útypingr   r   Úpyrogramr   r   r   r3   r4   r,   ú<module>r7      s   ð÷( ã ß ÷fDò fDr4   