+
    ÁFñjÙ  ã                   ó˜   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIHtH	t	H
t
 ^ RIHt ^ RIHtHt ^ RIHtHt  ! R R	]]]]3,          4      tR
# )z6This module contains the MessageReactionHandler class.)ÚFinal)ÚUpdate)ÚDEFAULT_TRUE)ÚRTÚSCTÚDVType)ÚBaseHandler)Úparse_chat_idÚparse_username)ÚCCTÚHandlerCallbackc                   ó†   a a€ ] tR t^t oRtRtR	t ^ t ^t RRRR]]	3V3R lV 3R lllt
V3R lR ltV3R ltRtVtV ;t# )
ÚMessageReactionHandleraé  Handler class to handle Telegram updates that contain a message reaction.

Note:
    The following rules apply to both ``username`` and the ``chat_id`` param groups,
    respectively:

     * If none of them are passed, the handler does not filter the update for that specific
        attribute.
     * If a chat ID **or** a username is passed, the updates will be filtered with that
        specific attribute.
     * If a chat ID **and** a username are passed, an update containing **any** of them will be
        filtered.
     * :attr:`telegram.MessageReactionUpdated.actor_chat` is *not* considered for
       :paramref:`user_id` and :paramref:`user_username` filtering.

Warning:
    When setting :paramref:`block` to :obj:`False`, you cannot rely on adding custom
    attributes to :class:`telegram.ext.CallbackContext`. See its docs for more info.

.. versionadded:: 20.8

Args:
    callback (:term:`coroutine function`): The callback function for this handler. Will be
        called when :meth:`check_update` has determined that an update should be processed by
        this handler. Callback signature::

            async def callback(update: Update, context: CallbackContext)

        The return value of the callback is usually ignored except for the special case of
        :class:`telegram.ext.ConversationHandler`.
    message_reaction_types (:obj:`int`, optional): Pass one of
        :attr:`MESSAGE_REACTION_UPDATED`, :attr:`MESSAGE_REACTION_COUNT_UPDATED` or
        :attr:`MESSAGE_REACTION` to specify if this handler should handle only updates with
        :attr:`telegram.Update.message_reaction`,
        :attr:`telegram.Update.message_reaction_count` or both. Defaults to
        :attr:`MESSAGE_REACTION`.
    chat_id (:obj:`int` | Collection[:obj:`int`], optional): Filters reactions to allow
        only those which happen in the specified chat ID(s).
    chat_username (:obj:`str` | Collection[:obj:`str`], optional): Filters reactions to allow
        only those which happen in the specified username(s).
    user_id (:obj:`int` | Collection[:obj:`int`], optional): Filters reactions to allow
        only those which are set by the specified chat ID(s) (this can be the chat itself in
        the case of anonymous users, see the
        :paramref:`telegram.MessageReactionUpdated.actor_chat`).
    user_username (:obj:`str` | Collection[:obj:`str`], optional): Filters reactions to allow
        only those which are set by the specified username(s) (this can be the chat itself in
        the case of anonymous users, see the
        :paramref:`telegram.MessageReactionUpdated.actor_chat`).
    block (:obj:`bool`, optional): Determines whether the return value of the callback should
        be awaited before processing the next handler in
        :meth:`telegram.ext.Application.process_update`. Defaults to :obj:`True`.

        .. seealso:: :wiki:`Concurrency`

Attributes:
    callback (:term:`coroutine function`): The callback function for this handler.
    message_reaction_types (:obj:`int`): Optional. Specifies if this handler should handle only
        updates with :attr:`telegram.Update.message_reaction`,
        :attr:`telegram.Update.message_reaction_count` or both.
    block (:obj:`bool`): Determines whether the callback will run in a blocking way.

Nc                óê   <€ V ^8„  d   QhRRRS[ S[S[S[3,          RS[S[,          R,          RS[S[,          R,          RS[S[,          R,          RS[S[,          R,          R	S[R
S[S[,          /# )é   ÚselfzMessageReactionHandler[CCT, RT]ÚcallbackÚchat_idNÚchat_usernameÚuser_idÚuser_usernameÚmessage_reaction_typesÚblock)	r   r   r   r   r   ÚintÚstrr   Úbool)ÚformatÚ__classdict__s   "€Úc/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/ext/_handlers/messagereactionhandler.pyÚ__annotate__Ú#MessageReactionHandler.__annotate__p   sˆ   ø€ ÷ =ñ =Ø/ð=á!¡&©#©r /Õ2ð=ñ ‘S•˜D•ð=ñ ™3•x $•ð	=ñ
 ‘S•˜D•ð=ñ ™3•x $•ð=ñ !$ð=ñ ‘d�|ñ=ó    c                ó$  <€ \         SV `  WR 7       W`n        \        V4      V n        \        V4      V n        V'       g	   V'       d)   VV P                  V P                  39   d   \        R4      h\        V4      V n
        \        V4      V n        R# ))r   zwYou can not filter for users and include anonymous reactions. Set `message_reaction_types` to MESSAGE_REACTION_UPDATED.N)ÚsuperÚ__init__r   r	   Ú	_chat_idsr
   Ú_chat_usernamesÚMESSAGE_REACTIONÚMESSAGE_REACTION_COUNT_UPDATEDÚ
ValueErrorÚ	_user_idsÚ_user_usernames)	r   r   r   r   r   r   r   r   Ú	__class__s	   &&&&&&&&€r   r$   ÚMessageReactionHandler.__init__p   s‰   ø€ ô 	‰Ñ˜ÐÔ/Ø+AÔ#ä& wÓ/ˆŒÜ-¨mÓ<ˆÔß—}Ð*@Ø×!Ñ!Ø×/Ñ/ðE
ô +
ô ðHóð ô ' wÓ/ˆŒÜ-¨mÓ<ˆÖr!   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r   ÚupdateÚreturn)Úobjectr   )r   r   s   "€r   r   r    Š   s   ø€ ÷ *
ñ *
¡6ð *
©dñ *
r!   c                ó   € \        V\        4      '       g   R# VP                  '       g   VP                  '       g   R# V P                  V P
                  8X  d   VP                  '       d   R# V P                  V P                  8X  d   VP                  '       d   R# \        V P                  V P                  V P                  V P                  34      '       g   R# VP                  ;p'       d   VP                  MRpV'       d   VP                  MRpVP                  ;p'       d   VP                  MRpV'       d   VP                  MRp\!        V P                  ;'       d    W0P                  9   4      ;'       g’    \!        V P                  ;'       d    W@P                  9   4      ;'       g_    \!        V P                  ;'       d    W`P                  9   4      ;'       g,    \!        V P                  ;'       d    WpP                  9   4      # )z¼Determines whether an update should be passed to this handler's :attr:`callback`.

Args:
    update (:class:`telegram.Update` | :obj:`object`): Incoming update.

Returns:
    :obj:`bool`

FTN)Ú
isinstancer   Úmessage_reactionÚmessage_reaction_countr   ÚMESSAGE_REACTION_UPDATEDr(   Úanyr%   r&   r*   r+   Úeffective_chatÚidÚusernameÚeffective_userr   )r   r/   Úchatr   r   Úuserr   r   s   &&      r   Úcheck_updateÚ#MessageReactionHandler.check_updateŠ   s–  € ô ˜&¤&×)Ò)Ùà×'×'Ð'¨6×+H×+HÐ+HÙð ×'Ñ'¨4×+HÑ+HÔHØ×-×-Ð-áð ×'Ñ'¨4×+NÑ+NÔNØ×'×'Ð'áä�D—N‘N D×$8Ñ$8¸$¿.¹.È$×J^ÑJ^Ð_×`Ò`Ùð '-×&;Ñ&;Ð;˜dÖ;�$—'’'À$ˆß)-˜Ÿš°4ˆØ&,×&;Ñ&;Ð;˜dÖ;�$—'’'À$ˆß)-˜Ÿš°4ˆô �—‘×?Ð? W·±Ñ%>Ó@÷ Vð VÜ�D×(Ñ(×TÐT¨m×?SÑ?SÑ.SÓU÷Vð Vä�D—N‘N×BÐB¨·>±>Ñ(AÓC÷Vð Vô �D×(Ñ(×TÐT¨m×?SÑ?SÑ.SÓUð		
r!   c                ón   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   # )r   r6   r(   r'   )r   r   )r   r   s   "€r   r   r       s>   ø‡ ‚ ñP $¡C�jÑ-ñQ ñT %*©#¥JÑ2ñU ñZ ™C•jÑ$ò[ r!   )r%   r&   r*   r+   r   éÿÿÿÿ)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r6   r(   r'   r   r$   r>   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r,   r   s   @@r   r   r      sc   ù‡ € ñ=ð~€Ið ,.ÐØaØ12Ð"ð7à#$Ðð;ð $(Ø)-Ø#'Ø)-Ø&6Ø*÷=õ =÷4*
ð *
÷W … r!   r   N)rF   Útypingr   Útelegramr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r   r   Ú"telegram.ext._handlers.basehandlerr   Ú#telegram.ext._utils._update_parsingr	   r
   Útelegram.ext._utils.typesr   r   r   © r!   r   Ú<module>rT      s;   ðñ& =å å Ý 5ß 1Ñ 1Ý :ß Mß :ôU
˜[¨°°b¨Õ9ö U
r!   