+
    ÁFñjc  ã                   óŒ   € R 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 ChatJoinRequestHandler class.)ÚUpdate)ÚDEFAULT_TRUE)ÚRTÚSCTÚDVType)ÚBaseHandler)Úparse_chat_idÚparse_username)ÚCCTÚHandlerCallbackc                   ób   a a€ ] tR t^t oRtRtRR]3V3R lV 3R llltV3R lR ltRt	Vt
V ;t# )ÚChatJoinRequestHandleraŒ  Handler class to handle Telegram updates that contain
:attr:`telegram.Update.chat_join_request`.

Note:
    If neither of :paramref:`username` and the :paramref:`chat_id` are passed, this handler
    accepts *any* join request. Otherwise, this handler accepts all requests to join chats
    for which the chat ID is listed in :paramref:`chat_id` or the username is listed in
    :paramref:`username`, or both.

    .. versionadded:: 20.0

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:: 13.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`.
    chat_id (:obj:`int` | Collection[:obj:`int`], optional): Filters requests to allow only
        those which are asking to join the specified chat ID(s).

        .. versionadded:: 20.0
    username (:obj:`str` | Collection[:obj:`str`], optional): Filters requests to allow only
        those which are asking to join the specified username(s).

        .. versionadded:: 20.0
    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.
    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[,          /# )é   ÚselfzChatJoinRequestHandler[CCT, RT]ÚcallbackÚchat_idNÚusernameÚ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/chatjoinrequesthandler.pyÚ__annotate__Ú#ChatJoinRequestHandler.__annotate__Q   sZ   ø€ ÷ 
3ñ 
3Ø/ð
3á!¡&©#©r /Õ2ð
3ñ ‘S•˜D•ð
3ñ ‘c•(˜T•/ð	
3ñ
 ‘d�|ñ
3ó    c                óh   <€ \         SV `  WR 7       \        V4      V n        \	        V4      V n        R# ))r   N)ÚsuperÚ__init__r   Ú	_chat_idsr	   Ú
_usernames)r   r   r   r   r   Ú	__class__s   &&&&&€r   r    ÚChatJoinRequestHandler.__init__Q   s-   ø€ ô 	‰Ñ˜ÐÔ/ä& wÓ/ˆŒÜ(¨Ó2ˆŽ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      '       d—   VP                  '       d…   V P                  '       g   V P                  '       g   R# VP                  P
                  P                  V P                  9   d   R# VP                  P                  P                  V P                  9   # R# )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`

TF)	Ú
isinstancer   Úchat_join_requestr!   r"   ÚchatÚidÚ	from_userr   )r   r&   s   &&r   Úcheck_updateÚ#ChatJoinRequestHandler.check_update]   su   € ô �fœf×%Ò%¨&×*B×*BÐ*BØ—>—>�>¨$¯/¯/¨/ÙØ×'Ñ'×,Ñ,×/Ñ/°4·>±>ÔAÙØ×+Ñ+×5Ñ5×>Ñ>À$Ç/Á/ÑQÐQÙr   )r!   r"   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r    r/   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r#   r   s   @@r   r   r      s6   ù‡ € ñ,ð\€Ið $(Ø$(Ø*÷
3õ 
3÷÷ ð r   r   N)r5   Ú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>rA      s8   ðñ& =å Ý 5ß 1Ñ 1Ý :ß Mß :ôP˜[¨°°b¨Õ9ö Pr   