+
    ÁFñjF6  ã                   óˆ   € R t ^ RIt^ RIHtHtHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ]'       d   ^ RIHt ] ! R R4      4       tR# )	z\This module contains the class Defaults, which allows passing default values to Application.N)ÚTYPE_CHECKINGÚAnyÚNoReturnÚfinal)ÚUTC)Úwarn)ÚPTBDeprecationWarning)ÚLinkPreviewOptionsc                   ó¾  a € ] tR t^ t o RtR8tRR]RRRRR3V 3R lR lltV 3R lR ltV 3R lR	 lt	]
V 3R
 lR l4       t]
V 3R lR l4       t]P                  V 3R lR l4       t]
V 3R lR l4       t]P                  V 3R lR l4       t]
V 3R lR l4       t]P                  V 3R lR l4       t]
V 3R lR l4       t]P                  V 3R lR l4       t]
V 3R lR l4       t]P                  V 3R lR l4       t]
V 3R  lR! l4       t]P                  V 3R" lR# l4       t]
V 3R$ lR% l4       t]P                  V 3R& lR' l4       t]
V 3R( lR) l4       t]P                  V 3R* lR+ l4       t]
V 3R, lR- l4       t]P                  V 3R. lR/ l4       t]
V 3R0 lR1 l4       t]P                  V 3R2 lR3 l4       t]
V 3R4 lR5 l4       t]
V 3R6 lR7 l4       tR8tV tR# )9ÚDefaultsaø  Convenience Class to gather all parameters with a (user defined) default value

.. seealso:: :wiki:`Architecture Overview <Architecture>`,
    :wiki:`Adding Defaults to Your Bot <Adding-defaults-to-your-bot>`

.. versionchanged:: 20.0
    Removed the argument and attribute ``timeout``. Specify default timeout behavior for the
    networking backend directly via :class:`telegram.ext.ApplicationBuilder` instead.

.. versionchanged:: 22.0
    Removed deprecated arguments and properties ``disable_web_page_preview`` and ``quote``.
    Use :paramref:`link_preview_options` and :paramref:`do_quote` instead.

Parameters:
    parse_mode (:obj:`str`, optional): |parse_mode|
    disable_notification (:obj:`bool`, optional): |disable_notification|
    allow_sending_without_reply (:obj:`bool`, optional): |allow_sending_without_reply|.
        Will be used for :attr:`telegram.ReplyParameters.allow_sending_without_reply`.
    tzinfo (:class:`datetime.tzinfo`, optional): A timezone to be used for all date(time)
        inputs appearing throughout PTB, i.e. if a timezone naive date(time) object is passed
        somewhere, it will be assumed to be in :paramref:`tzinfo`. Defaults to
        :attr:`datetime.timezone.utc` otherwise.

        .. deprecated:: 21.10
            Support for ``pytz`` timezones is deprecated and will be removed in future
            versions.

    block (:obj:`bool`, optional): Default setting for the :paramref:`BaseHandler.block`
        parameter
        of handlers and error handlers registered through :meth:`Application.add_handler` and
        :meth:`Application.add_error_handler`. Defaults to :obj:`True`.
    protect_content (:obj:`bool`, optional): |protect_content|

        .. versionadded:: 20.0
    link_preview_options (:class:`telegram.LinkPreviewOptions`, optional):
        Link preview generation options for all outgoing messages. Mutually exclusive with
        :paramref:`disable_web_page_preview`.
        This object is used for the corresponding parameter of
        :meth:`telegram.Bot.send_message`, :meth:`telegram.Bot.edit_message_text`,
        and :class:`telegram.InputTextMessageContent` if not specified. If a value is specified
        for the corresponding parameter, only those parameters of
        :class:`telegram.LinkPreviewOptions` will be overridden that are not
        explicitly set.

        Example:

            .. code-block:: python

                from telegram import LinkPreviewOptions
                from telegram.ext import Defaults, ExtBot

                defaults = Defaults(
                    link_preview_options=LinkPreviewOptions(show_above_text=True)
                )
                chat_id = 123

                async def main():
                    async with ExtBot("Token", defaults=defaults) as bot:
                        # The link preview will be shown above the text.
                        await bot.send_message(chat_id, "https://python-telegram-bot.org")

                        # The link preview will be shown below the text.
                        await bot.send_message(
                            chat_id,
                            "https://python-telegram-bot.org",
                            link_preview_options=LinkPreviewOptions(show_above_text=False)
                        )

                        # The link preview will be shown above the text, but the preview will
                        # show Telegram.
                        await bot.send_message(
                            chat_id,
                            "https://python-telegram-bot.org",
                            link_preview_options=LinkPreviewOptions(url="https://telegram.org")
                        )

        .. versionadded:: 20.8
    do_quote(:obj:`bool`, optional): |reply_quote|

        .. versionadded:: 20.8
NTc                ó¢   <€ V ^8„  d   QhRS[ R,          RS[R,          RS[P                  RS[RS[R,          RS[R,          RR	R
S[R,          /# )é   Ú
parse_modeNÚdisable_notificationÚtzinfoÚblockÚallow_sending_without_replyÚprotect_contentÚlink_preview_optionsúLinkPreviewOptions | NoneÚdo_quote)ÚstrÚboolÚdtmr   )ÚformatÚ__classdict__s   "€ÚL/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/ext/_defaults.pyÚ__annotate__ÚDefaults.__annotate__€   ss   ø€ ÷ 12ñ 12á˜$•Jð12ñ # T�kð12ñ —
‘
ð	12ñ
 ð12ñ &*¨D¥[ð12ñ  �ð12ð :ð12ñ ˜•+ñ12ó    c	                ó<  € Wn         W n        WPn        W0n        W@n        W`n        R \        V P                  P                  4      9   d   \        \        RRR7      ^R7       Wpn
        W€n        / V n        R F"  p	\        W	4      p
V
f   K  W P                  V	&   K$  	  R# )Úpytzz21.10zPSupport for pytz timezones is deprecated and will be removed in future versions.)ÚversionÚmessage)r#   Ú
stacklevelN)	r   r   r   Úexplanation_parse_moder   r   Útext_parse_moder   Úquestion_parse_mode)Ú_parse_modeÚ_disable_notificationÚ_allow_sending_without_replyÚ_tzinfoÚ_blockÚ_protect_contentr   Ú	__class__r   r   Ú_link_preview_optionsÚ	_do_quoteÚ_api_defaultsÚgetattr)Úselfr   r   r   r   r   r   r   r   ÚkwargÚvalues   &&&&&&&&&  r   Ú__init__ÚDefaults.__init__€   s�   € ð (2ÔØ2FÔ"Ø9TÔ)Ø#)ŒØ!ŒØ-<Ôà”S˜Ÿ™×/Ñ/Ó0Ô0äÜ-Ø#ð+ôð õ	ð &:Ô"Ø!Œð  ˆÔó

ˆEô ˜DÓ(ˆEØÔ Ø,1×"Ñ" 5Ó)ó

r   c                ó    <€ V ^8„  d   QhRS[ /# ©r   Úreturn)Úint)r   r   s   "€r   r   r   ³   s   ø€ ÷ 
ñ 
™#ñ 
r   c           
     óÈ   € \        V P                  V P                  V P                  V P                  V P
                  V P                  V P                  V P                  34      # )zÇBuilds a hash value for this object such that the hash of two objects is equal if and
only if the objects are equal in terms of :meth:`__eq__`.

Returns:
    :obj:`int` The hash value of the object.
)	Úhashr(   r)   r/   r*   r0   r+   r,   r-   ©r3   s   &r   Ú__hash__ÚDefaults.__hash__³   sX   € ô à× Ñ Ø×*Ñ*Ø×*Ñ*Ø×1Ñ1Ø—‘Ø—‘Ø—‘Ø×%Ñ%ð	ó
ð 	
r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r   Úotherr:   )Úobjectr   )r   r   s   "€r   r   r   Ç   s   ø€ ÷ 
ñ 
™Fð 
¡tñ 
r   c                óÖ   a a€ \        S\        4      '       dQ   \        ;QJ d*    VV 3R lS P                   4       F  '       d   K   R# 	  R# ! VV 3R lS P                   4       4      # R# )zúDefines equality condition for the :class:`Defaults` object.
Two objects of this class are considered to be equal if all their parameters
are identical.

Returns:
    :obj:`True` if both objects have all parameters identical. :obj:`False` otherwise.
c              3   óV   <"  € T F  p\        SV4      \        SV4      8H  x € K   	  R # 5i©N)r2   )Ú.0ÚattrrB   r3   s   & €€r   Ú	<genexpr>Ú"Defaults.__eq__.<locals>.<genexpr>Ð   s$   øé € Ð^É~Àt”w˜t TÓ*¬g°e¸TÓ.BÖBË~ùs   ƒ&)FT)Ú
isinstancer   ÚallÚ	__slots__)r3   rB   s   ffr   Ú__eq__ÚDefaults.__eq__Ç   sF   ù€ ô �eœX×&Ò&ß“3Õ^ÈtÏ~Ê~Ó^—3”3Ð^’3Ð^�3Õ^ÈtÏ~Ê~Ó^Ó^Ð^Ùr   c                ó6   <€ V ^8„  d   QhRS[ S[S[3,          /# r9   )Údictr   r   )r   r   s   "€r   r   r   Ô   s   ø€ ÷ "ñ "™d¡3© 8�nñ "r   c                ó   € V P                   # rF   )r1   r>   s   &r   Úapi_defaultsÚDefaults.api_defaultsÓ   s   € à×!Ñ!Ð!r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# ©r   r:   N©r   )r   r   s   "€r   r   r   Ø   s   ø€ ÷  ñ  ™C $�Jñ  r   c                ó   € V P                   # )z�:obj:`str`: Optional. Send Markdown or HTML, if you want Telegram apps to show
bold, italic, fixed-width text or URLs in your bot's message.
©r(   r>   s   &r   r   ÚDefaults.parse_mode×   ó   € ð
 ×ÑÐr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# ©r   Ú_r:   ©rC   r   )r   r   s   "€r   r   r   ß   s   ø€ ÷ cñ c™Fð c¡xñ cr   c                ó   € \        R 4      h)zBYou can not assign a new value to parse_mode after initialization.©ÚAttributeError©r3   r^   s   &&r   r   rZ   Þ   s   € äÐaÓbÐbr   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   rW   )r   r   s   "€r   r   r   ã   s   ø€ ÷  ñ  ©¨d­
ñ  r   c                ó   € V P                   # )z|:obj:`str`: Optional. Alias for :attr:`parse_mode`, used for
the corresponding parameter of :meth:`telegram.Bot.send_poll`.
rY   r>   s   &r   r%   ÚDefaults.explanation_parse_modeâ   r[   r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r   ê   s   ø€ ÷ 
ñ 
©ð 
±8ñ 
r   c                ó   € \        R 4      h)zNYou can not assign a new value to explanation_parse_mode after initialization.ra   rc   s   &&r   r%   rf   é   s   € äØ\ó
ð 	
r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   rW   )r   r   s   "€r   r   r   ð   s   ø€ ÷  ñ  ¡#¨¥*ñ  r   c                ó   € V P                   # )z~:obj:`str`: Optional. Alias for :attr:`parse_mode`, used for
the corresponding parameter of :meth:`telegram.ReplyParameters`.
rY   r>   s   &r   Úquote_parse_modeÚDefaults.quote_parse_modeï   r[   r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r   ÷   s   ø€ ÷ 
ñ 
¡&ð 
©Xñ 
r   c                ó   € \        R 4      h)zHYou can not assign a new value to quote_parse_mode after initialization.ra   rc   s   &&r   rk   rl   ö   s   € äØVó
ð 	
r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   rW   )r   r   s   "€r   r   r   ý   s   ø€ ÷  ñ  ¡ t¥ñ  r   c                ó   € V P                   # )zº:obj:`str`: Optional. Alias for :attr:`parse_mode`, used for
the corresponding parameter of :class:`telegram.InputPollOption` and
:meth:`telegram.Bot.send_gift`.

.. versionadded:: 21.2
rY   r>   s   &r   r&   ÚDefaults.text_parse_modeü   s   € ð ×ÑÐr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r     ó   ø€ ÷ 
ñ 
¡ð 
©Hñ 
r   c                ó   € \        R 4      h)zGYou can not assign a new value to text_parse_mode after initialization.ra   rc   s   &&r   r&   rq     s   € äØUó
ð 	
r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   rW   )r   r   s   "€r   r   r     s   ø€ ÷  ñ  ¡S¨4¥Zñ  r   c                ó   € V P                   # )z”:obj:`str`: Optional. Alias for :attr:`parse_mode`, used for
the corresponding parameter of :meth:`telegram.Bot.send_poll`.

.. versionadded:: 21.2
rY   r>   s   &r   r'   ÚDefaults.question_parse_mode  s   € ð ×ÑÐr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r     s   ø€ ÷ 
ñ 
¡Vð 
±ñ 
r   c                ó   € \        R 4      h)zKYou can not assign a new value to question_parse_mode after initialization.ra   rc   s   &&r   r'   rw     s   € äØYó
ð 	
r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   ©r   )r   r   s   "€r   r   r     s   ø€ ÷ *ñ *¡d¨T¥kñ *r   c                ó   € V P                   # )zd:obj:`bool`: Optional. Sends the message silently. Users will
receive a notification with no sound.
)r)   r>   s   &r   r   ÚDefaults.disable_notification  s   € ð
 ×)Ñ)Ð)r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r   #  s   ø€ ÷ 
ñ 
¡fð 
±ñ 
r   c                ó   € \        R 4      h)zLYou can not assign a new value to disable_notification after initialization.ra   rc   s   &&r   r   r}   "  s   € äØZó
ð 	
r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   r{   )r   r   s   "€r   r   r   )  s   ø€ ÷ 1ñ 1©T°D­[ñ 1r   c                ó   € V P                   # )z~:obj:`bool`: Optional. Pass :obj:`True`, if the message
should be sent even if the specified replied-to message is not found.
)r*   r>   s   &r   r   Ú$Defaults.allow_sending_without_reply(  s   € ð
 ×0Ñ0Ð0r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r   0  s   ø€ ÷ 
ñ 
©Vð 
¹ñ 
r   c                ó   € \        R 4      h)zSYou can not assign a new value to allow_sending_without_reply after initialization.ra   rc   s   &&r   r   r‚   /  s   € äØaó
ð 	
r   c                ó4   <€ V ^8„  d   QhRS[ P                  /# r9   )r   r   )r   r   s   "€r   r   r   6  s   ø€ ÷ ñ ™Ÿ
™
ñ r   c                ó   € V P                   # )zZ:obj:`tzinfo`: A timezone to be used for all date(time) objects appearing
throughout PTB.
)r+   r>   s   &r   r   ÚDefaults.tzinfo5  s   € ð
 �|‰|Ðr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r   =  s   ø€ ÷ _ñ _™ð _¡8ñ _r   c                ó   € \        R 4      h)z>You can not assign a new value to tzinfo after initialization.ra   rc   s   &&r   r   r‡   <  s   € äÐ]Ó^Ð^r   c                ó    <€ V ^8„  d   QhRS[ /# r9   r{   )r   r   s   "€r   r   r   A  s   ø€ ÷ ñ ‘tñ r   c                ó   € V P                   # )zÔ:obj:`bool`: Optional. Default setting for the :paramref:`BaseHandler.block` parameter
of handlers and error handlers registered through :meth:`Application.add_handler` and
:meth:`Application.add_error_handler`.
)r,   r>   s   &r   r   ÚDefaults.block@  s   € ð �{‰{Ðr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r   I  s   ø€ ÷ ^ñ ^‘vð ^¡(ñ ^r   c                ó   € \        R 4      h)z=You can not assign a new value to block after initialization.ra   rc   s   &&r   r   rŒ   H  s   € äÐ\Ó]Ð]r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   r{   )r   r   s   "€r   r   r   M  s   ø€ ÷ %ñ %¡¨¥ñ %r   c                ó   € V P                   # )zu:obj:`bool`: Optional. Protects the contents of the sent message from forwarding and
saving.

.. versionadded:: 20.0
)r-   r>   s   &r   r   ÚDefaults.protect_contentL  s   € ð ×$Ñ$Ð$r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r]   r_   )r   r   s   "€r   r   r   V  rs   r   c                ó   € \        R 4      h)zEYou can't assign a new value to protect_content after initialization.ra   rc   s   &&r   r   r‘   U  s   € äØSó
ð 	
r   c                ó   <€ V ^8„  d   QhRR/# )r   r:   r   © )r   r   s   "€r   r   r   \  s   ø€ ÷ *ñ *Ð&Añ *r   c                ó   € V P                   # )zƒ:class:`telegram.LinkPreviewOptions`: Optional. Link preview generation options for all
outgoing messages.

.. versionadded:: 20.8
)r/   r>   s   &r   r   ÚDefaults.link_preview_options[  s   € ð ×)Ñ)Ð)r   c                ó.   <€ V ^8„  d   QhRS[ R,          /# rV   r{   )r   r   s   "€r   r   r   e  s   ø€ ÷ ñ ™$ �+ñ r   c                ó   € V P                   # )z=:obj:`bool`: Optional. |reply_quote|

.. versionadded:: 20.8
)r0   r>   s   &r   r   ÚDefaults.do_quoted  s   € ð �~‰~Ðr   )	r*   r1   r,   r)   r0   r/   r(   r-   r+   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rM   r   r6   r?   rN   ÚpropertyrS   r   Úsetterr%   rk   r&   r'   r   r   r   r   r   r   r   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r       sV  ø‡ € ñPðd
€Ið "&Ø,0Ø ØØ37Ø'+Ø<@Ø $÷12ò 12÷f
ð 
÷(
ð 
ð ÷"ó ð"ð ÷ ó ð ð ×Ñ÷có ðcð ÷ ó ð ð ×"Ñ"÷
ó #ð
ð
 ÷ ó ð ð ×Ñ÷
ó ð
ð
 ÷ ó ð ð ×Ñ÷
ó ð
ð
 ÷ ó ð ð ×Ñ÷
ó  ð
ð
 ÷*ó ð*ð × Ñ ÷
ó !ð
ð
 ÷1ó ð1ð !×'Ñ'÷
ó (ð
ð
 ÷ó ðð ‡]�]÷_ó ð_ð ÷ó ðð ‡\�\÷^ó ð^ð ÷%ó ð%ð ×Ñ÷
ó ð
ð
 ÷*ó ð*ð ÷ó ör   r   )rŸ   Údatetimer   Útypingr   r   r   r   Útelegram._utils.datetimer   Útelegram._utils.warningsr   Útelegram.warningsr   Útelegramr	   r   r•   r   r   Ú<module>rª      s?   ðñ& cã ß 6Ó 6å (Ý )Ý 3çÝ+ð ÷Ið Ió òIr   