+
    rpÐj   ã                   óÐ   € R t ^ RIt^ RIHtHt ^ RIHtHtHtHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ RIHtHt ]! R	4      t]'       d   ^ R
IHt  ! R R]]
]]3,          4      tR# )z9This module contains the ChosenInlineResultHandler class.N)ÚMatchÚPattern)ÚTYPE_CHECKINGÚAnyÚTypeVarÚcast)ÚUpdate)ÚDEFAULT_TRUE)ÚDVType)ÚBaseHandler)ÚCCTÚHandlerCallbackÚRT)ÚApplicationc                   ór   a a€ ] tR t^%t oRtR	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R lt	R	t
VtV ;t# )
ÚChosenInlineResultHandlera1  Handler class to handle Telegram updates that contain
:attr:`telegram.Update.chosen_inline_result`.

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.

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`.
    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`
    pattern (:obj:`str` | :func:`re.Pattern <re.compile>`, optional): Regex pattern. If not
        :obj:`None`, :func:`re.match`
        is used on :attr:`telegram.ChosenInlineResult.result_id` to determine if an update
        should be handled by this handler. This is accessible in the callback as
        :attr:`telegram.ext.CallbackContext.matches`.

        .. versionadded:: 13.6
Attributes:
    callback (:term:`coroutine function`): The callback function for this handler.
    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`.
    pattern (`Pattern`): Optional. Regex pattern to test
        :attr:`telegram.ChosenInlineResult.result_id` against.

        .. versionadded:: 13.6

Nc          
      óˆ   <€ V ^8„  d   QhRRRS[ S[S[S[3,          RS[S[,          RS[S[S[,          ,          R,          /# )é   Úselfz"ChosenInlineResultHandler[CCT, RT]ÚcallbackÚblockÚpatternN)r   r   r   r   r
   ÚboolÚstrr   )ÚformatÚ__classdict__s   "€Úb/opt/hermes/.venv/lib/python3.14/site-packages/telegram/ext/_handlers/choseninlineresulthandler.pyÚ__annotate__Ú&ChosenInlineResultHandler.__annotate__P   sN   ø€ ÷ :ñ :Ø2ð:á!¡&©#©r /Õ2ð:ñ ‘d�|ð:ñ ‘w™s•|Õ# dÕ*ñ	:ó    c                óŒ   <€ \         SV `  WR 7       \        V\        4      '       d   \        P
                  ! V4      pW0n        R# ))r   N)ÚsuperÚ__init__Ú
isinstancer   ÚreÚcompiler   )r   r   r   r   Ú	__class__s   &&&&€r   r"   Ú"ChosenInlineResultHandler.__init__P   s5   ø€ ô 	‰Ñ˜ÐÔ/ä�gœs×#Ò#Ü—j’j Ó)ˆGà29Žr   c                óD   <€ V ^8„  d   QhRS[ RS[S[ ,          R,          /# )r   ÚupdateÚreturnN)Úobjectr   )r   r   s   "€r   r   r   ]   s$   ø€ ÷ ñ ¡6ð ©d±V­m¸dÕ.Bñ r   c                ó  € \        V\        4      '       di   VP                  '       dW   V P                  '       dC   \        P
                  ! V P                  VP                  P                  4      ;p'       d   V#  R# R# 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` | :obj:`re.match`

TN)r#   r   Úchosen_inline_resultr   r$   ÚmatchÚ	result_id)r   r)   r.   s   && r   Úcheck_updateÚ&ChosenInlineResultHandler.check_update]   sc   € ô �fœf×%Ò%¨&×*E×*EÐ*EØ�|�|ˆ|ÜŸHšH T§\¡\°6×3NÑ3N×3XÑ3XÓYÐY�5ÖYØ �Lð Zñ ñ Ùr   c          
      óT   <€ V ^8„  d   QhRS[ RS[RRRS[S[S[,          ,          RR/# )r   Úcontextr)   Úapplicationz)Application[Any, CCT, Any, Any, Any, Any]Úcheck_resultr*   N)r   r   r   r   r   )r   r   s   "€r   r   r   o   sG   ø€ ÷ -ñ -áð-ñ ð-ð Að	-ñ
 ™U¡3�ZÕ'ð-ð 
ñ-r   c                óV   € V P                   '       d   \        RV4      pV.Vn        R# R# )zeThis function adds the matched regex pattern result to
:attr:`telegram.ext.CallbackContext.matches`.
r   N)r   r   Úmatches)r   r3   r)   r4   r5   s   &&&&&r   Úcollect_additional_contextÚ4ChosenInlineResultHandler.collect_additional_contexto   s'   € ð �<�<ˆ<Ü ¨Ó6ˆLØ+˜nˆGŽOñ r   )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r	   r"   r0   r8   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r&   r   s   @@r   r   r   %   s=   ù‡ € ñ&ðP €Ið
 +Ø-1÷	:õ :÷ð ÷$-÷ -ð -r   r   )r>   r$   r   r   Útypingr   r   r   r   Útelegramr   Útelegram._utils.defaultvaluer	   Útelegram._utils.typesr
   Ú"telegram.ext._handlers.basehandlerr   Útelegram.ext._utils.typesr   r   r   Útelegram.extr   r   © r   r   Ú<module>rK      sN   ðñ& @ã 	ß ß 4Ó 4å Ý 5Ý (Ý :ß :áˆTƒ]€çÝ(ôV- ¨F°C¸¨OÕ <ö V-r   