+
    ÁFñjl  ã                   ó˜   € R t ^ RIHtHt ^ RIHt ^ RIHt ^ RIH	t	 ^ RI
HtHtHt ]'       d   ^ RIHt  ! R R]	]]]3,          4      tR	# )
z4This module contains the StringCommandHandler class.)ÚTYPE_CHECKINGÚAny)ÚDEFAULT_TRUE)ÚDVType)ÚBaseHandler)ÚCCTÚRTÚHandlerCallback)ÚApplicationc                   óp   a a€ ] tR t^ t oRtRt]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# )	ÚStringCommandHandlera1  Handler class to handle string commands. Commands are string updates that start with
``/``. The handler will add a :obj:`list` to the
:class:`CallbackContext` named :attr:`CallbackContext.args`. It will contain a list of strings,
which is the text following the command split on single whitespace characters.

Note:
    This handler is not used to handle Telegram :class:`telegram.Update`, but strings manually
    put in the queue. For example to send messages with the bot using command line or API.

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:
    command (:obj:`str`): The command this handler should listen for.
    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: str, 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`

Attributes:
    command (:obj:`str`): The command this handler should listen for.
    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`.

c          	      óZ   <€ V ^8„  d   QhRRRS[ RS[S[ S[S[3,          RS[S[,          /# )é   ÚselfzStringCommandHandler[CCT, RT]ÚcommandÚcallbackÚblock)Ústrr	   r   r   r   Úbool)ÚformatÚ__classdict__s   "€Úa/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/ext/_handlers/stringcommandhandler.pyÚ__annotate__Ú!StringCommandHandler.__annotate__I   s@   ø€ ÷ $ñ $Ø-ð$áð$ñ "¡#¡s©B ,Õ/ð$ñ ‘d�|ñ	$ó    c                ó4   <€ \         SV `  W#R 7       Wn        R# ))r   N)ÚsuperÚ__init__r   )r   r   r   r   Ú	__class__s   &&&&€r   r   ÚStringCommandHandler.__init__I   s   ø€ ô 	‰Ñ˜ÐÔ/Ø#Žr   c                óD   <€ V ^8„  d   QhRS[ RS[S[,          R,          /# )r   ÚupdateÚreturnN)ÚobjectÚlistr   )r   r   s   "€r   r   r   R   s$   ø€ ÷ ñ ¡6ð ©d±3­i¸$Õ.>ñ r   c                óÒ   € \        V\        4      '       dQ   VP                  R4      '       d:   VR,          P                  R4      pV^ ,          V P                  8X  d
   VR,          # R# )záDetermines whether an update should be passed to this handler's :attr:`callback`.

Args:
    update (:obj:`object`): The incoming update.

Returns:
    list[:obj:`str`]: List containing the text command split on whitespace.

Ú/:é   NNÚ N)Ú
isinstancer   Ú
startswithÚsplitr   )r   r!   Úargss   && r   Úcheck_updateÚ!StringCommandHandler.check_updateR   sQ   € ô �fœc×"Ò" v×'8Ñ'8¸×'=Ò'=Ø˜"•:×#Ñ# CÓ(ˆDØ�A�w˜$Ÿ,™,Ô&Ø˜B•x�Ùr   c          
      óR   <€ V ^8„  d   QhRS[ RS[RRRS[S[,          R,          RR/# )r   Úcontextr!   Úapplicationz)Application[Any, CCT, Any, Any, Any, Any]Úcheck_resultNr"   )r   r   r$   )r   r   s   "€r   r   r   b   sG   ø€ ÷ 
$ñ 
$áð
$ñ ð
$ð Að	
$ñ
 ™3•i $Õ&ð
$ð 
ñ
$r   c                ó   € WAn         R# )zaAdd text after the command to :attr:`CallbackContext.args` as list, split on single
whitespaces.
N)r,   )r   r0   r!   r1   r2   s   &&&&&r   Úcollect_additional_contextÚ/StringCommandHandler.collect_additional_contextb   s	   € ð $Žr   )r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r   r   r-   r4   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r   s   @@r   r   r       s:   ù‡ € ñ$ðL €Ið +÷	$õ $÷ð ÷ 
$÷ 
$ð 
$r   r   N)r:   Útypingr   r   Útelegram._utils.defaultvaluer   Útelegram._utils.typesr   Ú"telegram.ext._handlers.basehandlerr   Útelegram.ext._utils.typesr   r   r	   Útelegram.extr
   r   r   © r   r   Ú<module>rF      s;   ðñ& ;ç %å 5Ý (Ý :ß >Ñ >çÝ(ôL$˜; s¨C° |Õ4ö L$r   