+
    ÁFñj•  ã                   ó¤   € R t ^ RIHtHt ^ RIHt ^ RIHt ^ RIH	t	H
t
 ^ RIHt ^ RIHt ^ RIHtHt ]! R4      t ! R	 R
]]]]3,          4      tR# )z1This module contains the ChatMemberHandler class.)ÚFinalÚTypeVar)ÚUpdate)ÚDEFAULT_TRUE)ÚSCTÚDVType)ÚBaseHandler)Úparse_chat_id)ÚCCTÚHandlerCallbackÚRTc                   ó€   a a€ ] tR t^!t oRtRtR	t ^ t ^t ]]	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# )
ÚChatMemberHandlera  Handler class to handle Telegram updates that contain a chat member update.

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.

Examples:
    :any:`Chat Member Bot <examples.chatmemberbot>`

.. versionadded:: 13.4

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`.
    chat_member_types (:obj:`int`, optional): Pass one of :attr:`MY_CHAT_MEMBER`,
        :attr:`CHAT_MEMBER` or :attr:`ANY_CHAT_MEMBER` to specify if this handler should handle
        only updates with :attr:`telegram.Update.my_chat_member`,
        :attr:`telegram.Update.chat_member` or both. Defaults to :attr:`MY_CHAT_MEMBER`.
    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`
    chat_id (:obj:`int` | Collection[:obj:`int`], optional): Filters chat member updates from
        specified chat ID(s) only.
        .. versionadded:: 21.3

Attributes:
    callback (:term:`coroutine function`): The callback function for this handler.
    chat_member_types (:obj:`int`): Optional. Specifies if this handler should handle
        only updates with :attr:`telegram.Update.my_chat_member`,
        :attr:`telegram.Update.chat_member` or both.
    block (:obj:`bool`): Determines whether the return value of the callback should be
        awaited before processing the next handler in
        :meth:`telegram.ext.Application.process_update`.

Nc                ó~   <€ V ^8„  d   QhRRRS[ S[S[S[3,          RS[RS[S[,          RS[S[,          R,          /# )é   ÚselfzChatMemberHandler[CCT, RT]ÚcallbackÚchat_member_typesÚblockÚchat_idN)r   r   r
   r   Úintr   Úboolr   )ÚformatÚ__classdict__s   "€Ú^/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/ext/_handlers/chatmemberhandler.pyÚ__annotate__ÚChatMemberHandler.__annotate__Z   sR   ø€ ÷ 
0ñ 
0Ø*ð
0á!¡&©#©r /Õ2ð
0ñ ð
0ñ ‘d�|ð	
0ñ
 ‘S•˜D•ñ
0ó    c                óT   <€ \         SV `  WR 7       W n        \        V4      V n        R# ))r   N)ÚsuperÚ__init__r   r	   Ú	_chat_ids)r   r   r   r   r   Ú	__class__s   &&&&&€r   r    ÚChatMemberHandler.__init__Z   s'   ø€ ô 	‰Ñ˜ÐÔ/à->ÔÜ& wÓ/ˆŽr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r   ÚupdateÚreturn)Úobjectr   )r   r   s   "€r   r   r   f   s   ø€ ÷ +ñ +¡6ð +©dñ +r   c                óØ  € \        V\        4      '       g   R# VP                  '       g   VP                  '       g   R# V P                  '       d:   VP
                  '       d(   VP
                  P                  V P                  9  d   R# V P                  V P                  8X  d   R# V P                  V P                  8X  d   \        VP                  4      # \        VP                  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`

FT)Ú
isinstancer   Úmy_chat_memberÚchat_memberr!   Úeffective_chatÚidr   ÚANY_CHAT_MEMBERÚCHAT_MEMBERr   )r   r%   s   &&r   Úcheck_updateÚChatMemberHandler.check_updatef   s«   € ô ˜&¤&×)Ò)ÙØ×%×%Ð%¨×);×);Ð);Ùà�N�NˆNØ×%×%Ð%Ø×%Ñ%×(Ñ(°·±Ô>áØ×!Ñ! T×%9Ñ%9Ô9ÙØ×!Ñ! T×%5Ñ%5Ô5Ü˜×*Ñ*Ó+Ð+Ü�F×)Ñ)Ó*Ð*r   c                ón   <€ V ^8„  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   S[ S[,          ;R&   # )r   ÚMY_CHAT_MEMBERr/   r.   )r   r   )r   r   s   "€r   r   r   !   s>   ø‡ ‚ ñb ™#•JÑ#ñc ñf ‘s•Ññg ñj ™3•ZÑ#òk r   )r!   r   éÿÿÿÿ)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r3   r/   r.   r   r    r0   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r"   r   s   @@r   r   r   !   sU   ù‡ € ñ*ðX€Ið "$€NØ_Ø€KØ\Ø"#€Oð0ð "0Ø*Ø#'÷
0õ 
0÷+ð +÷K … r   r   N)r9   Útypingr   r   Útelegramr   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   r   Ú"telegram.ext._handlers.basehandlerr   Ú#telegram.ext._utils._update_parsingr	   Útelegram.ext._utils.typesr
   r   r   r   © r   r   Ú<module>rG      sA   ðñ& 8ç !å Ý 5ß -Ý :Ý =ß :áˆTƒ]€ô]+˜ F¨C° OÕ4ö ]+r   