+
    ÁFñj¶Þ  ã                   óÀ  € R t ^ RIHt ^ RIHtHtHt ^ RIHt ^ RI	H
t
HtHtHt ^ RIt^ RIHt ^ RIHtHtHt ^ RIHtHtHtHtHtHtHt ^ R	IHt ^ R
I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,H-t-H.t.H/t/H0t0 ^ RI1H2t2 ^ RI3H4t4 ]
'       d   ^ RI5H6t6 ^ RI7H8t8H9t9H:t:H;t; ^ RI*H<t< ]! R]R7      t=]! RR]',          R7      t>]! RRR7      t?]! R4      t@]! R4      tA]! R4      tB]! RRR7      tC. R!OtDRtE ! R  R]],]-]0].]+]/3,          4      tF]F]%R,          ]#PŽ                  ]H]]3,          ]H]]3,          ]H]]3,          ]']#PŽ                  ,          3,          tIR# )"zEThis module contains the Builder classes for the telegram.ext module.)ÚQueue)ÚCallableÚ
CollectionÚ	Coroutine)ÚPath)ÚTYPE_CHECKINGÚAnyÚGenericÚTypeVarN)ÚBot)ÚDEFAULT_FALSEÚDEFAULT_NONEÚDefaultValue)ÚBaseUrlÚDVInputÚDVTypeÚFilePathInputÚHTTPVersionÚODVInputÚ	SocketOpt)ÚApplication)ÚBaseUpdateProcessorÚSimpleUpdateProcessor)ÚContextTypes©ÚExtBot)ÚJobQueue)ÚUpdater)ÚBDÚBTÚCCTÚCDÚJQÚUD)ÚBaseRequest)ÚHTTPXRequest)ÚUpdate)ÚBasePersistenceÚBaseRateLimiterÚCallbackContextÚDefaults)ÚRLARGSÚInBT)ÚboundÚInJQÚInCCTr)   ÚInUDÚInCDÚInBDÚBuilderTypeÚApplicationBuilderz5The parameter `{}` may only be set, if no {} was set.c                   ól  a € ] tR t^dt o RtR_tV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR	 lt	V 3R
 lR lt
V 3R lR ltR`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tV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR ltV 3R lR  ltV 3R! lR" ltV 3R# lR$ ltV 3R% lR& ltV 3R' lR( ltV 3R) lR* ltV 3R+ lR, ltV 3R- lR. ltV 3R/ lR0 ltV 3R1 lR2 ltV 3R3 lR4 ltV 3R5 lR6 ltV 3R7 lR8 lt V 3R9 lR: lt!V 3R; lR< lt"V 3R= lR> lt#V 3R? lR@ lt$R`V 3RA lRB llt%V 3RC lRD lt&V 3RE lRF lt'V 3RG lRH lt(V 3RI lRJ lt)V 3RK lRL lt*V 3RM lRN lt+V 3RO lRP lt,V 3RQ lRR lt-V 3RS lRT lt.V 3RU lRV lt/V 3RW lRX lt0V 3RY lRZ lt1V 3R[ lR\ lt2V 3R] lR^ lt3R_t4V t5R# )ar4   a`  This class serves as initializer for :class:`telegram.ext.Application` via the so called
`builder pattern`_. To build a :class:`telegram.ext.Application`, one first initializes an
instance of this class. Arguments for the :class:`telegram.ext.Application` to build are then
added by subsequently calling the methods of the builder. Finally, the
:class:`telegram.ext.Application` is built by calling :meth:`build`. In the simplest case this
can look like the following example.

Example:
    .. code:: python

        application = ApplicationBuilder().token("TOKEN").build()

Please see the description of the individual methods for information on which arguments can be
set and what the defaults are when not called. When no default is mentioned, the argument will
not be used by default.

Note:
    * Some arguments are mutually exclusive. E.g. after calling :meth:`token`, you can't set
      a custom bot with :meth:`bot` and vice versa.
    * Unless a custom :class:`telegram.Bot` instance is set via :meth:`bot`, :meth:`build` will
      use :class:`telegram.ext.ExtBot` for the bot.

.. seealso:: :wiki:`Your First Bot <Extensions---Your-first-Bot>`,
    :wiki:`Builder Pattern <Builder-Pattern>`

.. versionchanged:: 22.0
    Removed deprecated methods ``proxy_url`` and ``get_updates_proxy_url``.

.. _`builder pattern`: https://en.wikipedia.org/wiki/Builder_pattern
c                ó   <€ V ^8„  d   QhRR/# )é   ÚselfÚInitApplicationBuilder© )ÚformatÚ__classdict__s   "€ÚV/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/ext/_applicationbuilder.pyÚ__annotate__ÚApplicationBuilder.__annotate__¯   s   ø€ ÷ 1?ñ 1?Ð/ñ 1?ó    c                ó^  € \        R 4      V n        \        R4      V n        \        R4      V n        \        V n        \        V n        \        V n        \        V n        \        V n	        \        V n
        \        V n        \        V n        \        V n        \        V n        \        V n        \        V n        \        V n        \        V n        \        V n        \        V n        \        V n        \        R4      V n        \        V n        \        V n        \        V n        \4        V n        \4        V n        \        V n        \        \=        4       4      V n         \        \A        4       4      V n!        \        V n$        \        \K        4       4      V n&        \        \N        4      V n(        / V n)        \U        ^R7      V n+        \        V n,        RV n-        RV n.        RV n/        \        V n0        \        R4      V n1        R#   \D         d'   pR\G        T4      9  d   h \        T n!         Rp?L¸Rp?ii ; i)Ú zhttps://api.telegram.org/botz!https://api.telegram.org/file/botú1.1zPTB must be installed viaN)Úmax_concurrent_updates)2r   Ú_tokenÚ	_base_urlÚ_base_file_urlr   Ú_connection_pool_sizeÚ_proxyÚ_socket_optionsÚ_connect_timeoutÚ_read_timeoutÚ_write_timeoutÚ_media_write_timeoutÚ_pool_timeoutÚ_requestÚ!_get_updates_connection_pool_sizeÚ_get_updates_proxyÚ_get_updates_socket_optionsÚ_get_updates_connect_timeoutÚ_get_updates_read_timeoutÚ_get_updates_write_timeoutÚ_get_updates_pool_timeoutÚ_get_updates_requestÚ_get_updates_http_versionÚ_private_keyÚ_private_key_passwordÚ	_defaultsr   Ú_arbitrary_callback_dataÚ_local_modeÚ_botr   Ú_update_queuer   Ú
_job_queueÚRuntimeErrorÚstrÚ_persistencer   Ú_context_typesr   Ú_application_classÚ_application_kwargsr   Ú_update_processorÚ_updaterÚ
_post_initÚ_post_shutdownÚ
_post_stopÚ_rate_limiterÚ_http_version)r8   Úexcs   & r=   Ú__init__ÚApplicationBuilder.__init__¯   s©  € Ü#/°Ó#3ˆŒÜ*6Ð7UÓ*VˆŒÜ/;Ð<_Ó/`ˆÔÜ3?ˆÔ"Ü>JˆŒÜ?KˆÔÜ1=ˆÔÜ.:ˆÔÜ/;ˆÔÜ5AˆÔ!Ü.:ˆÔÜ.:ˆŒÜ?KˆÔ.ÜJVˆÔÜKWˆÔ(Ü=IˆÔ)Ü:FˆÔ&Ü;GˆÔ'Ü:FˆÔ&Ü:FˆÔ!Ü7CÀEÓ7JˆÔ&Ü-9ˆÔÜ6BˆÔ"Ü-9ˆŒÜBOˆÔ%Ü)6ˆÔÜ".ˆŒ	Ü=IÌ%Ë'Ó=RˆÔð	+Ü2>¼x»zÓ2JˆDŒOô 8DˆÔÜ4@ÄÃÓ4PˆÔÜ=IÌ+Ó=VˆÔØ68ˆÔ Ü6KØ#$ô7
ˆÔô ,8ˆŒØUYˆŒØY]ˆÔØUYˆŒÜ8DˆÔÜ+7¸Ó+>ˆÖøô# ô 	+Ø*´#°c³(Ô:ØÜ*ˆD�O‰Oûð	+ús   ÅG; Ç;H,ÈH'È'H,c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r7   Úget_updatesÚreturn)Úboolr$   )r;   r<   s   "€r=   r>   r?   â   s   ø€ ÷ '
ñ '
©$ð '
±;ñ '
r@   c                óf  € V'       d   R MRp\        \        W R24      \        4      '       g   \        W R24      # \        P                  ! \        W R24      4      p\        P                  ! \        W R24      4      pV'       d.   \        P                  ! \        W R24      4      ;'       g    ^pM,\        P                  ! \        W R24      4      ;'       g    RpR\        W R24      R\        W R24      R	\        W R	24      R
\        W R
24      /pV'       g   V P                  VR&   VP                  4        UUu/ uF  w  rx\        V\        4      '       d   K  WxbK!  	  p	pp\        P                  ! \        W R24      4      ;'       g    Rp
\        RRVRVRV
RV/V	B # u uppi )Ú_get_updates_Ú_ÚrequestÚproxyÚsocket_optionsÚconnection_pool_sizeé   Úconnect_timeoutÚread_timeoutÚwrite_timeoutÚpool_timeoutÚmedia_write_timeoutÚhttp_versionrC   r:   )Ú
isinstanceÚgetattrr   Ú	get_valuerN   Úitemsr%   )r8   rs   Úprefixrz   r{   r|   ÚtimeoutsÚkeyÚvalueÚeffective_timeoutsrƒ   s   &&         r=   Ú_build_requestÚ!ApplicationBuilder._build_requestâ   sÅ  € ß$/‘°SˆÜœ' $¨(°'Ð(:Ó;¼\×JÒJÜ˜4 8¨7Ð!3Ó4Ð4ä×&Ò&¤w¨t°x¸uÐ5EÓ'FÓGˆÜ%×/Ò/´¸ÀÈÐ>WÓ0XÓYˆßä×&Ò&¤w¨t°xÐ?SÐ5TÓ'UÓV×[Ð[ÐZ[ñ !ô
 ×&Ò&¤w¨t°xÐ?SÐ5TÓ'UÓV×]Ð]ÐZ]ð !ð
 œw t¨x°Ð-GÓHØœG D¨H°LÐ*AÓBØœW T¨X°]Ð+CÓDØœG D¨H°LÐ*AÓBð	
ˆ÷ Ø.2×.GÑ.GˆHÐ*Ñ+ð *2¯©Ô)9ô
Ù)9™:˜3ÄÈEÔS_×A`ŒJˆCŠJÑ)9ð 	ñ 
ô $×-Ò-¬g°d¸hÀlÐ<SÓ.TÓU×^Ð^ÐY^ˆäñ 
Ø!5ð
àð
ð &ð
ð *ð	
ð
 !ñ
ð 	
ùó
s   ÅF-Å%F-c                ó    <€ V ^8„  d   QhRS[ /# )r7   rt   r   )r;   r<   s   "€r=   r>   r?     s   ø€ ÷ 
ñ 
¡ñ 
r@   c                ó¸  € \        V P                  \        4      '       d   \        R 4      h\	        V P                  \        P
                  ! V P                  4      \        P
                  ! V P                  4      \        P
                  ! V P                  4      \        P
                  ! V P                  4      \        P
                  ! V P                  4      \        P
                  ! V P                  4      V P                  RR7      V P                  RR7      \        P
                  ! V P                  4      \        P
                  ! V P                  4      R7      # )zNo bot token was set.F©rs   T)ÚtokenÚbase_urlÚbase_file_urlÚprivate_keyÚprivate_key_passwordÚdefaultsÚarbitrary_callback_datary   Úget_updates_requestÚrate_limiterÚ
local_mode)r„   rE   r   rb   r   r†   rF   rG   rZ   r[   r\   r]   r�   rm   r^   )r8   s   &r=   Ú_build_ext_botÚ!ApplicationBuilder._build_ext_bot  sñ   € Ü�d—k‘k¤<×0Ò0ÜÐ6Ó7Ð7äØ—+‘+Ü!×+Ò+¨D¯N©NÓ;Ü&×0Ò0°×1DÑ1DÓEÜ$×.Ò.¨t×/@Ñ/@ÓAÜ!-×!7Ò!7¸×8RÑ8RÓ!SÜ!×+Ò+¨D¯N©NÓ;Ü$0×$:Ò$:¸4×;XÑ;XÓ$YØ×'Ñ'°EÐ'Ó:Ø $× 3Ñ 3ÀÐ 3Ó EÜ%×/Ò/°×0BÑ0BÓCÜ#×-Ò-¨d×.>Ñ.>Ó?ô
ð 	
r@   c                ó$   <€ V ^8„  d   QhRS[ RR/# ©r7   Únamert   N©rc   )r;   r<   s   "€r=   r>   r?     s   ø€ ÷ Kñ K™sð K tñ Kr@   c                ól   € V P                   \        Jd    \        \        P	                  VR 4      4      hR# )úbot instanceN)r_   r   rb   Ú_TWO_ARGS_REQr;   ©r8   r    s   &&r=   Ú
_bot_checkÚApplicationBuilder._bot_check  s+   € Ø�9‰9œLÓ(Üœ}×3Ñ3°D¸.ÓIÓJÐJñ )r@   c                ó$   <€ V ^8„  d   QhRS[ RR/# rŸ   r¡   )r;   r<   s   "€r=   r>   r?   !  s   ø€ ÷ Fñ F¡3ð F¨4ñ Fr@   c                ór   € V P                   \        R 39  d    \        \        P	                  VR4      4      hR # )NÚupdater)ri   r   rb   r¤   r;   r¥   s   &&r=   Ú_updater_checkÚ!ApplicationBuilder._updater_check!  s0   € Ø�=‰=¤¨tÐ 4Ô4Üœ}×3Ñ3°D¸)ÓDÓEÐEñ 5r@   c          
      óJ   <€ V ^8„  d   QhRRRS[ S[S[S[S[S[S[3,          /# )r7   r8   ú+ApplicationBuilder[BT, CCT, UD, CD, BD, JQ]rt   )r   r   r    r#   r!   r   r"   )r;   r<   s   "€r=   r>   r?   %  s/   ø€ ÷ 7ñ 7Ø;ð7á	‘R™™b¡"¡b©"Ð,Õ	-ñ7r@   c                ó°  € \         P                  ! V P                  4      p\         P                  ! V P                  4      p\	        V P
                  \         4      '       g   V P
                  f|   \	        V P                  \         4      '       d   V P                  4       pMV P                  p\         P                  ! V P                  4      pV P
                  f   RpME\        W4R7      pM8V P
                  pV P
                  P                  pV P
                  P                  p\         P                  ! V P                  4      ! RRVRVRVRV P                  RVRVR	\         P                  ! V P                  4      R
V P                  RV P                   RV P"                  /
V P$                  B pVe   VP'                  V4       Ve   VP)                  V4       V# )zîBuilds a :class:`telegram.ext.Application` with the provided arguments.

Calls :meth:`telegram.ext.JobQueue.set_application` and
:meth:`telegram.ext.BasePersistence.set_bot` if appropriate.

Returns:
    :class:`telegram.ext.Application`
N)ÚbotÚupdate_queuer°   r±   rª   Úupdate_processorÚ	job_queueÚpersistenceÚcontext_typesÚ	post_initÚpost_shutdownÚ	post_stopr:   )r   r†   ra   rd   r„   ri   r_   rœ   r`   r   r°   r±   rf   rh   re   rj   rk   rl   rg   Úset_applicationÚset_bot)r8   r³   r´   r°   r±   rª   Úapplications   &      r=   ÚbuildÚApplicationBuilder.build%  s¯  € ô !×*Ò*¨4¯?©?Ó;ˆ	Ü"×,Ò,¨T×->Ñ->Ó?ˆä�d—m‘m¤\×2Ò2°d·m±mÒ6KÜ˜$Ÿ)™)¤\×2Ò2Ø×.Ñ.Ó0‘à—i‘i�ä'×1Ò1°$×2DÑ2DÓEˆLà�}‰}Ò$Ø‘ä! cÔE‘à—m‘mˆGØ—-‘-×#Ñ#ˆCØŸ=™=×5Ñ5ˆLä<H×<RÒ<RØ×#Ñ#ô=
ñ =
ð ð=
ð &ð	=
ð
 ð=
ð "×3Ñ3ð=
ð  ð=
ð $ð=
ô '×0Ò0°×1DÑ1DÓEð=
ð —o‘oð=
ð ×-Ñ-ð=
ð —o‘oð=
ð ×&Ñ&ñ=
ˆð  Ò Ø×%Ñ% kÔ2àÒ"ð ×Ñ Ô$àÐr@   Nc                óŒ   <€ V ^8„  d   QhRS[ RS[S[S[S[S[S[S[S[3,          ,          RS[S[S[3,          R,          RS[ /# )r7   r8   Úapplication_classÚkwargsNrt   )r3   Útyper   r   Údictrc   Úobject)r;   r<   s   "€r=   r>   r?   ^  sV   ø€ ÷ ñ Ùðá¡©C±±c¹3ÁÁSÐ,HÕ IÕJðñ ‘S™&�[Õ! DÕ(ðñ 
ñ	r@   c                ó4   € Wn         T;'       g    / V n        V # )az  Sets a custom subclass instead of :class:`telegram.ext.Application`. The
subclass's ``__init__`` should look like this

.. code:: python

    def __init__(self, custom_arg_1, custom_arg_2, ..., **kwargs):
        super().__init__(**kwargs)
        self.custom_arg_1 = custom_arg_1
        self.custom_arg_2 = custom_arg_2

Args:
    application_class (:obj:`type`): A subclass of :class:`telegram.ext.Application`
    kwargs (dict[:obj:`str`, :obj:`object`], optional): Keyword arguments for the
        initialization. Defaults to an empty dict.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
)rf   rg   )r8   r¿   rÀ   s   &&&r=   r¿   Ú$ApplicationBuilder.application_class^  s   € ð. #4ÔØ#)§< <¨RˆÔ Øˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   r’   rt   )r3   rc   )r;   r<   s   "€r=   r>   r?   y  s"   ø€ ÷ ñ ‘Kð ©ð ±ñ r@   c                óV   € V P                  R4       V P                  R4       Wn        V # )zºSets the token for :attr:`telegram.ext.Application.bot`.

Args:
    token (:obj:`str`): The token.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r’   )r¦   r«   rE   )r8   r’   s   &&r=   r’   ÚApplicationBuilder.tokeny  s(   € ð 	�‰˜Ô Ø×Ñ˜GÔ$ØŒØˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   r“   rt   ©r3   r   )r;   r<   s   "€r=   r>   r?   ‡  s"   ø€ ÷ ñ ‘{ð ©gð ¹+ñ r@   c                óV   € V P                  R4       V P                  R4       Wn        V # )aA  Sets the base URL for :attr:`telegram.ext.Application.bot`. If not called,
will default to ``'https://api.telegram.org/bot'``.

.. seealso:: :paramref:`telegram.Bot.base_url`,
    :wiki:`Local Bot API Server <Local-Bot-API-Server>`, :meth:`base_file_url`

.. versionchanged:: 21.11
   Supports callable input and string formatting.

Args:
    base_url (:obj:`str` | Callable[[:obj:`str`], :obj:`str`]): The URL or
        input for the URL as accepted by :paramref:`telegram.Bot.base_url`.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r“   )r¦   r«   rF   )r8   r“   s   &&r=   r“   ÚApplicationBuilder.base_url‡  s(   € ð" 	�‰˜
Ô#Ø×Ñ˜JÔ'Ø!ŒØˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   r”   rt   rÊ   )r;   r<   s   "€r=   r>   r?   �  s"   ø€ ÷ ñ ™Kð ¹ð ÁKñ r@   c                óV   € V P                  R4       V P                  R4       Wn        V # )aU  Sets the base file URL for :attr:`telegram.ext.Application.bot`. If not
called, will default to ``'https://api.telegram.org/file/bot'``.

.. seealso:: :paramref:`telegram.Bot.base_file_url`,
    :wiki:`Local Bot API Server <Local-Bot-API-Server>`, :meth:`base_url`

.. versionchanged:: 21.11
   Supports callable input and string formatting.

Args:
    base_file_url (:obj:`str` | Callable[[:obj:`str`], :obj:`str`]): The URL or
        input for the URL as accepted by :paramref:`telegram.Bot.base_file_url`.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r”   )r¦   r«   rG   )r8   r”   s   &&r=   r”   Ú ApplicationBuilder.base_file_url�  s)   € ð" 	�‰˜Ô(Ø×Ñ˜OÔ,Ø+ÔØˆr@   c                ó$   <€ V ^8„  d   QhRS[ RR/# )r7   rs   rt   N)ru   )r;   r<   s   "€r=   r>   r?   ³  s   ø€ ÷ Oñ O©$ð O°4ñ Or@   c           	     ó¨  € V'       d   R MRpVR,           p. ROpV'       g   VP                  R4       V FF  p\        \        V RV V 24      \        4      '       d   K*  \	        \
        P                  W54      4      h	  \        \        V RV R24      \        4      '       g    \	        \
        P                  VR4      4      h\        \        V RV R24      \        4      '       g    \	        \
        P                  VR4      4      h\        \        V RV R24      \        4      '       g    \	        \
        P                  VR4      4      h\        \        V RV R24      \        4      '       g    \	        \
        P                  VR4      4      hV P                  V4       V P                  \        R	39  d    \	        \
        P                  VR
4      4      hR	# )Úget_updates_rB   ry   r‚   rx   r|   rz   r{   rƒ   Núupdater instance)r~   r   r€   r�   )
Úappendr„   r…   r   rb   r¤   r;   r¦   ri   r   )r8   rs   rˆ   r    r‰   Úattrs   &&    r=   Ú_request_checkÚ!ApplicationBuilder._request_check³  s  € ß#.‘°BˆØ˜	Õ!ˆâWˆßØ�O‰OÐ1Ô2ó ˆDÜœg d¨a°¨x¸°vÐ,>Ó?Ä×NÔNÜ"¤=×#7Ñ#7¸Ó#CÓDÐDñ ô œ' $¨!¨F¨8Ð3GÐ(HÓIÌ<×XÒXÜœ}×3Ñ3°DÐ:PÓQÓRÐRäœ' $¨!¨F¨8°5Ð(9Ó:¼L×IÒIÜœ}×3Ñ3°D¸'ÓBÓCÐCäœ' $¨!¨F¨8°>Ð(BÓCÄ\×RÒRÜœ}×3Ñ3°DÐ:JÓKÓLÐLäœ' $¨!¨F¨8°<Ð(@ÓAÄ<×PÒPÜœ}×3Ñ3°D¸.ÓIÓJÐJà�‰˜Ôà�=‰=¤¨tÐ 4Ô4Üœ}×3Ñ3°DÐ:LÓMÓNÐNñ 5r@   c                ó*   <€ V ^8„  d   QhRS[ RS[RR/# )r7   r    rs   rt   N)rc   ru   )r;   r<   s   "€r=   r>   r?   Ò  s"   ø€ ÷ ñ ©ð ¹4ð ÀDñ r@   c                ó  € V'       d7   V P                   \        Jd#   \        \        P	                  R V 2R4      4      hV P
                  \        Jd    \        \        P	                  VR4      4      hV P                  \        Jd6   \        \        P	                  V'       d   R V 2R4      4      hTR4      4      hV P                  \        R39  d6   \        \        P	                  V'       d   R V 2R4      4      hTR4      4      hR# )rÒ   úget_updates_request instanceúrequest instancer£   Nrª   )rX   r   rb   r¤   r;   rP   r_   ri   )r8   r    rs   s   &&&r=   Ú_request_param_checkÚ'ApplicationBuilder._request_param_checkÒ  sù   € ß˜4×4Ñ4¼LÓHÜÜ×$Ñ$ |°D°6Ð%:Ð<ZÓ[óð ð �=‰=¤Ó,Üœ}×3Ñ3°DÐ:LÓMÓNÐNà�9‰9œLÓ(ÜÜ×$Ñ$ß-8�l 4 &Ð)ÀNóóð à>BÀNóóð ð �=‰=¤¨tÐ 4Ô4ÜÜ×$Ñ$¿k |°D°6Ð%:ÐU^Ó_óð ØOSÐU^Ó_óð ñ 5r@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   ry   rt   ©r3   r$   )r;   r<   s   "€r=   r>   r?   æ  s"   ø€ ÷ ñ ‘kð ©Kð ¹Kñ r@   c                ó6   € V P                  RR7       Wn        V # )ae  Sets a :class:`telegram.request.BaseRequest` instance for the
:paramref:`telegram.Bot.request` parameter of :attr:`telegram.ext.Application.bot`.

.. seealso:: :meth:`get_updates_request`

Args:
    request (:class:`telegram.request.BaseRequest`): The request instance.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
Fr‘   )rÖ   rP   )r8   ry   s   &&r=   ry   ÚApplicationBuilder.requestæ  s   € ð 	×Ñ¨ÐÔ.ØŒØˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   r|   rt   ©r3   Úint)r;   r<   s   "€r=   r>   r?   ö  s"   ø€ ÷ ñ ¡;ð Ácð Ékñ r@   c                ó8   € V P                  RRR7       Wn        V # )aµ  Sets the size of the connection pool for the
:paramref:`~telegram.request.HTTPXRequest.connection_pool_size` parameter of
:attr:`telegram.Bot.request`. Defaults to ``256``.

.. include:: inclusions/pool_size_tip.rst

.. seealso:: :meth:`get_updates_connection_pool_size`

Args:
    connection_pool_size (:obj:`int`): The size of the connection pool.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r|   F©r    rs   )rÜ   rH   )r8   r|   s   &&r=   r|   Ú'ApplicationBuilder.connection_pool_sizeö  s#   € ð 	×!Ñ!Ð'=È5Ð!ÔQØ%9Ô"Øˆr@   c                ót   <€ V ^8„  d   QhRS[ RS[S[P                  ,          S[P                  ,          RS[ /# )r7   r8   rz   rt   ©r3   rc   ÚhttpxÚProxyÚURL)r;   r<   s   "€r=   r>   r?   	  s4   ø€ ÷ ñ ‘Kð ©©e¯k©kÕ(9¹E¿I¹IÕ(Eð É+ñ r@   c                ó8   € V P                  RRR7       Wn        V # )a  Sets the proxy for the :paramref:`~telegram.request.HTTPXRequest.proxy`
parameter of :attr:`telegram.Bot.request`. Defaults to :obj:`None`.

.. seealso:: :meth:`get_updates_proxy`

.. versionadded:: 20.7

Args:
    proxy (:obj:`str` | ``httpx.Proxy`` | ``httpx.URL``): The URL to a proxy
        server, a ``httpx.Proxy`` object or a ``httpx.URL`` object. See
        :paramref:`telegram.request.HTTPXRequest.proxy` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
rz   Fræ   )rÜ   rI   )r8   rz   s   &&r=   rz   ÚApplicationBuilder.proxy	  s!   € ð  	×!Ñ! w¸EÐ!ÔBØŒØˆr@   c                ó<   <€ V ^8„  d   QhRS[ RS[S[,          RS[ /# )r7   r8   r{   rt   ©r3   r   r   )r;   r<   s   "€r=   r>   r?     s(   ø€ ÷ ñ ™[ð ¹*ÁYÕ:Oð ÑT_ñ r@   c                ó8   € V P                  RRR7       Wn        V # )aâ  Sets the options for the :paramref:`~telegram.request.HTTPXRequest.socket_options`
parameter of :attr:`telegram.Bot.request`. Defaults to :obj:`None`.

.. seealso:: :meth:`get_updates_socket_options`

.. versionadded:: 20.7

Args:
    socket_options (Collection[:obj:`tuple`], optional): Socket options. See
        :paramref:`telegram.request.HTTPXRequest.socket_options` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r{   Fræ   )rÜ   rJ   )r8   r{   s   &&r=   r{   Ú!ApplicationBuilder.socket_options  s#   € ð 	×!Ñ!Ð'7ÀUÐ!ÔKØ-ÔØˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   r~   Nrt   ©r3   Úfloat)r;   r<   s   "€r=   r>   r?   0  s&   ø€ ÷ ñ ™kð ¹EÀD½Lð É[ñ r@   c                ó8   € V P                  RRR7       Wn        V # )a·  Sets the connection attempt timeout for the
:paramref:`~telegram.request.HTTPXRequest.connect_timeout` parameter of
:attr:`telegram.Bot.request`. Defaults to ``5.0``.

.. seealso:: :meth:`get_updates_connect_timeout`

Args:
    connect_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.connect_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r~   Fræ   )rÜ   rK   )r8   r~   s   &&r=   r~   Ú"ApplicationBuilder.connect_timeout0  s#   € ð 	×!Ñ!Ð'8ÀeÐ!ÔLØ /ÔØˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   r   Nrt   rô   )r;   r<   s   "€r=   r>   r?   B  s&   ø€ ÷ ñ ™;ð ±e¸dµlð Á{ñ r@   c                ó8   € V P                  RRR7       Wn        V # )a   Sets the waiting timeout for the
:paramref:`~telegram.request.HTTPXRequest.read_timeout` parameter of
:attr:`telegram.Bot.request`. Defaults to ``5.0``.

.. seealso:: :meth:`get_updates_read_timeout`

Args:
    read_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.read_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r   Fræ   )rÜ   rL   )r8   r   s   &&r=   r   ÚApplicationBuilder.read_timeoutB  s"   € ð 	×!Ñ! ~À5Ð!ÔIØ)ÔØˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   r€   Nrt   rô   )r;   r<   s   "€r=   r>   r?   T  s&   ø€ ÷ ñ ™Kð ¹À½ð Éñ r@   c                ó8   € V P                  RRR7       Wn        V # )a¬  Sets the write operation timeout for the
:paramref:`~telegram.request.HTTPXRequest.write_timeout` parameter of
:attr:`telegram.Bot.request`. Defaults to ``5.0``.

.. seealso:: :meth:`get_updates_write_timeout`

Args:
    write_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.write_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r€   Fræ   )rÜ   rM   )r8   r€   s   &&r=   r€   Ú ApplicationBuilder.write_timeoutT  s"   € ð 	×!Ñ! ÀEÐ!ÔJØ+ÔØˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   r‚   Nrt   rô   )r;   r<   s   "€r=   r>   r?   f  s'   ø€ ÷ ñ ¡+ð ÁEÈDÅLð ÑU`ñ r@   c                ó8   € V P                  RRR7       Wn        V # )a«  Sets the media write operation timeout for the
:paramref:`~telegram.request.HTTPXRequest.media_write_timeout` parameter of
:attr:`telegram.Bot.request`. Defaults to ``20``.

.. versionadded:: 21.0

Args:
    media_write_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.media_write_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r‚   Fræ   )rÜ   rN   )r8   r‚   s   &&r=   r‚   Ú&ApplicationBuilder.media_write_timeoutf  s#   € ð 	×!Ñ!Ð'<È%Ð!ÔPØ$7Ô!Øˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   r�   Nrt   rô   )r;   r<   s   "€r=   r>   r?   x  s&   ø€ ÷ ñ ™;ð ±e¸dµlð Á{ñ r@   c                ó8   € V P                  RRR7       Wn        V # )aè  Sets the connection pool's connection freeing timeout for the
:paramref:`~telegram.request.HTTPXRequest.pool_timeout` parameter of
:attr:`telegram.Bot.request`. Defaults to ``1.0``.

.. include:: inclusions/pool_size_tip.rst

.. seealso:: :meth:`get_updates_pool_timeout`

Args:
    pool_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.pool_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r�   Fræ   )rÜ   rO   )r8   r�   s   &&r=   r�   ÚApplicationBuilder.pool_timeoutx  s"   € ð  	×!Ñ! ~À5Ð!ÔIØ)ÔØˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   rƒ   rt   ©r3   r   )r;   r<   s   "€r=   r>   r?   Œ  s"   ø€ ÷ 'ñ '™;ð '±kð 'Ákñ 'r@   c                ó8   € V P                  RRR7       Wn        V # )a4  Sets the HTTP protocol version which is used for the
:paramref:`~telegram.request.HTTPXRequest.http_version` parameter of
:attr:`telegram.Bot.request`. By default, HTTP/1.1 is used.

.. seealso:: :meth:`get_updates_http_version`

Note:
    Users have observed stability issues with HTTP/2, which happen due to how the `h2
    library handles <https://github.com/python-hyper/h2/issues/1181>`_ cancellations of
    keepalive connections. See `#3556 <https://github.com/python-telegram-bot/
    python-telegram-bot/issues/3556>`_ for a discussion.

    If you want to use HTTP/2, you must install PTB with the optional requirement
    ``http2``, i.e.

    .. code-block:: bash

       pip install "python-telegram-bot[http2]"

    Keep in mind that the HTTP/1.1 implementation may be considered the `"more
    robust option at this time" <https://www.python-httpx.org/http2#enabling-http2>`_.

.. versionadded:: 20.1
.. versionchanged:: 20.2
    Reset the default version to 1.1.

Args:
    http_version (:obj:`str`): Pass ``"2"`` or ``"2.0"`` if you'd like to use HTTP/2 for
        making requests to Telegram. Defaults to ``"1.1"``, in which case HTTP/1.1 is used.

        .. versionchanged:: 20.5
            Accept ``"2"`` as a valid value.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
rƒ   Fræ   )rÜ   rn   )r8   rƒ   s   &&r=   rƒ   ÚApplicationBuilder.http_versionŒ  s#   € ðJ 	×!Ñ! ~À5Ð!ÔIØ)ÔØˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   r™   rt   rß   )r;   r<   s   "€r=   r>   r?   µ  s#   ø€ ÷ ñ ¡+ð ÁKð ÑT_ñ r@   c                ó6   € V P                  RR7       Wn        V # )ar  Sets a :class:`telegram.request.BaseRequest` instance for the
:paramref:`~telegram.Bot.get_updates_request` parameter of
:attr:`telegram.ext.Application.bot`.

.. seealso:: :meth:`request`

Args:
    get_updates_request (:class:`telegram.request.BaseRequest`): The request instance.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
Tr‘   )rÖ   rX   )r8   r™   s   &&r=   r™   Ú&ApplicationBuilder.get_updates_requestµ  s    € ð 	×Ñ¨ÐÔ-Ø$7Ô!Øˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   Ú get_updates_connection_pool_sizert   rã   )r;   r<   s   "€r=   r>   r?   Æ  s%   ø€ ÷ ñ ÙðÙ=@ðá	ñr@   c                ó8   € V P                  RRR7       Wn        V # )a¦  Sets the size of the connection pool for the
:paramref:`telegram.request.HTTPXRequest.connection_pool_size` parameter which is used
for the :meth:`telegram.Bot.get_updates` request. Defaults to ``1``.

.. seealso:: :meth:`connection_pool_size`

Args:
    get_updates_connection_pool_size (:obj:`int`): The size of the connection pool.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r|   Træ   )rÜ   rQ   )r8   r  s   &&r=   r  Ú3ApplicationBuilder.get_updates_connection_pool_sizeÆ  s#   € ð 	×!Ñ!Ð'=È4Ð!ÔPØ1QÔ.Øˆr@   c                ót   <€ V ^8„  d   QhRS[ RS[S[P                  ,          S[P                  ,          RS[ /# )r7   r8   Úget_updates_proxyrt   ré   )r;   r<   s   "€r=   r>   r?   Ù  s7   ø€ ÷ ñ ÙðÙ.1±E·K±KÕ.?Á%Ç)Á)Õ.Kðá	ñr@   c                ó8   € V P                  RRR7       Wn        V # )a  Sets the proxy for the :paramref:`telegram.request.HTTPXRequest.proxy`
parameter which is used for :meth:`telegram.Bot.get_updates`. Defaults to :obj:`None`.

.. seealso:: :meth:`proxy`

.. versionadded:: 20.7

Args:
    proxy (:obj:`str` | ``httpx.Proxy`` | ``httpx.URL``): The URL to a proxy server,
        a ``httpx.Proxy`` object or a ``httpx.URL`` object. See
        :paramref:`telegram.request.HTTPXRequest.proxy` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
rz   Træ   )rÜ   rR   )r8   r  s   &&r=   r  Ú$ApplicationBuilder.get_updates_proxyÙ  s"   € ð$ 	×!Ñ! w¸DÐ!ÔAØ"3ÔØˆr@   c                ó<   <€ V ^8„  d   QhRS[ RS[S[,          RS[ /# )r7   r8   Úget_updates_socket_optionsrt   rð   )r;   r<   s   "€r=   r>   r?   ï  s*   ø€ ÷ ñ ÙðÙ7AÁ)Õ7Lðá	ñr@   c                ó8   € V P                  RRR7       Wn        V # )aò  Sets the options for the :paramref:`~telegram.request.HTTPXRequest.socket_options`
parameter of :paramref:`telegram.Bot.get_updates_request`. Defaults to :obj:`None`.

.. seealso:: :meth:`socket_options`

.. versionadded:: 20.7

Args:
    get_updates_socket_options (Collection[:obj:`tuple`], optional): Socket options. See
        :paramref:`telegram.request.HTTPXRequest.socket_options` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r{   Træ   )rÜ   rS   )r8   r  s   &&r=   r  Ú-ApplicationBuilder.get_updates_socket_optionsï  s#   € ð" 	×!Ñ!Ð'7ÀTÐ!ÔJØ+EÔ(Øˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   Úget_updates_connect_timeoutNrt   rô   )r;   r<   s   "€r=   r>   r?     s)   ø€ ÷ ñ ÙðÙ8=À½ðá	ñr@   c                ó8   € V P                  RRR7       Wn        V # )aÕ  Sets the connection attempt timeout for the
:paramref:`telegram.request.HTTPXRequest.connect_timeout` parameter which is used for
the :meth:`telegram.Bot.get_updates` request. Defaults to ``5.0``.

.. seealso:: :meth:`connect_timeout`

Args:
    get_updates_connect_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.connect_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r~   Træ   )rÜ   rT   )r8   r  s   &&r=   r  Ú.ApplicationBuilder.get_updates_connect_timeout  s#   € ð  	×!Ñ!Ð'8ÀdÐ!ÔKØ,GÔ)Øˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   Úget_updates_read_timeoutNrt   rô   )r;   r<   s   "€r=   r>   r?     ó)   ø€ ÷ ñ ÙðÙ5:¸Tµ\ðá	ñr@   c                ó8   € V P                  RRR7       Wn        V # )a¾  Sets the waiting timeout for the
:paramref:`telegram.request.HTTPXRequest.read_timeout` parameter which is used for the
:meth:`telegram.Bot.get_updates` request. Defaults to ``5.0``.

.. seealso:: :meth:`read_timeout`

Args:
    get_updates_read_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.read_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r   Træ   )rÜ   rU   )r8   r  s   &&r=   r  Ú+ApplicationBuilder.get_updates_read_timeout  ó"   € ð  	×!Ñ! ~À4Ð!ÔHØ)AÔ&Øˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   Úget_updates_write_timeoutNrt   rô   )r;   r<   s   "€r=   r>   r?   ,  s)   ø€ ÷ ñ ÙðÙ6;¸dµlðá	ñr@   c                ó8   € V P                  RRR7       Wn        V # )aÊ  Sets the write operation timeout for the
:paramref:`telegram.request.HTTPXRequest.write_timeout` parameter which is used for
the :meth:`telegram.Bot.get_updates` request. Defaults to ``5.0``.

.. seealso:: :meth:`write_timeout`

Args:
    get_updates_write_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.write_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r€   Træ   )rÜ   rV   )r8   r"  s   &&r=   r"  Ú,ApplicationBuilder.get_updates_write_timeout,  s"   € ð  	×!Ñ! ÀDÐ!ÔIØ*CÔ'Øˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   Úget_updates_pool_timeoutNrt   rô   )r;   r<   s   "€r=   r>   r?   @  r  r@   c                ó8   € V P                  RRR7       Wn        V # )aÜ  Sets the connection pool's connection freeing timeout for the
:paramref:`~telegram.request.HTTPXRequest.pool_timeout` parameter which is used for the
:meth:`telegram.Bot.get_updates` request. Defaults to ``1.0``.

.. seealso:: :meth:`pool_timeout`

Args:
    get_updates_pool_timeout (:obj:`float`): See
        :paramref:`telegram.request.HTTPXRequest.pool_timeout` for more information.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r�   Træ   )rÜ   rW   )r8   r&  s   &&r=   r&  Ú+ApplicationBuilder.get_updates_pool_timeout@  r   r@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   Úget_updates_http_versionrt   r  )r;   r<   s   "€r=   r>   r?   T  s%   ø€ ÷ (ñ (Ùð(Ù5@ð(á	ñ(r@   c                ó8   € V P                  RRR7       Wn        V # )a  Sets the HTTP protocol version which is used for the
:paramref:`~telegram.request.HTTPXRequest.http_version` parameter which is used in the
:meth:`telegram.Bot.get_updates` request. By default, HTTP/1.1 is used.

.. seealso:: :meth:`http_version`

Note:
    Users have observed stability issues with HTTP/2, which happen due to how the `h2
    library handles <https://github.com/python-hyper/h2/issues/1181>`_ cancellations of
    keepalive connections. See `#3556 <https://github.com/python-telegram-bot/
    python-telegram-bot/issues/3556>`_ for a discussion.

    You will also need to install the http2 dependency. Keep in mind that the HTTP/1.1
    implementation may be considered the `"more robust option at this time"
    <https://www.python-httpx.org/http2#enabling-http2>`_.

    .. code-block:: bash

       pip install httpx[http2]

.. versionadded:: 20.1
.. versionchanged:: 20.2
    Reset the default version to 1.1.

Args:
    get_updates_http_version (:obj:`str`): Pass ``"2"`` or ``"2.0"`` if you'd like to use
        HTTP/2 for making requests to Telegram. Defaults to ``"1.1"``, in which case
        HTTP/1.1 is used.

        .. versionchanged:: 20.5
            Accept ``"2"`` as a valid value.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
rƒ   Træ   )rÜ   rY   )r8   r*  s   &&r=   r*  Ú+ApplicationBuilder.get_updates_http_versionT  s#   € ðL 	×!Ñ! ~À4Ð!ÔHØ)AÔ&Øˆr@   c                ó`   <€ V ^8„  d   QhRS[ RS[S[,          RS[S[,          R,          RS[ /# )r7   r8   r•   ÚpasswordNrt   )r3   Úbytesr   )r;   r<   s   "€r=   r>   r?   ~  s@   ø€ ÷ #ñ #Ùð#á™]Õ*ð#ñ ™-Õ'¨$Õ.ð#ñ 
ñ	#r@   c                ó6  € V P                  R4       V P                  R4       \        V\        4      '       d   TM\	        V4      P                  4       V n        Ve   \        V\        4      '       d	   W n        V # \	        V4      P                  4       V n        V # )a  Sets the private key and corresponding password for decryption of telegram passport data
for :attr:`telegram.ext.Application.bot`.

Examples:
    :any:`Passport Bot <examples.passportbot>`

.. seealso:: :wiki:`Telegram Passports <Telegram-Passport>`

Args:
    private_key (:obj:`bytes` | :obj:`str` | :obj:`pathlib.Path`): The private key or the
        file path of a file that contains the key. In the latter case, the file's content
        will be read automatically.
    password (:obj:`bytes` | :obj:`str` | :obj:`pathlib.Path`, optional): The corresponding
        password or the file path of a file that contains the password. In the latter case,
        the file's content will be read automatically.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r•   )r¦   r«   r„   r/  r   Ú
read_bytesrZ   r[   )r8   r•   r.  s   &&&r=   r•   ÚApplicationBuilder.private_key~  s„   € ð0 	�‰˜Ô&Ø×Ñ˜MÔ*ô & k´5×9Ò9‰K¼tÀKÓ?P×?[Ñ?[Ó?]ð 	Ôð Òœz¨(´E×:Ò:Ø)1Ô&ð ˆô *.¨h«×)BÑ)BÓ)DˆDÔ&àˆr@   c                ó*   <€ V ^8„  d   QhRS[ RRRS[ /# )r7   r8   r—   r*   rt   ©r3   )r;   r<   s   "€r=   r>   r?   £  s"   ø€ ÷ ñ ‘{ð ¨jð ¹[ñ r@   c                óV   € V P                  R4       V P                  R4       Wn        V # )aO  Sets the :class:`telegram.ext.Defaults` instance for
:attr:`telegram.ext.Application.bot`.

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

Args:
    defaults (:class:`telegram.ext.Defaults`): The defaults instance.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r—   )r¦   r«   r\   )r8   r—   s   &&r=   r—   ÚApplicationBuilder.defaults£  s(   € ð 	�‰˜
Ô#Ø×Ñ˜JÔ'Ø!ŒØˆr@   c                ó<   <€ V ^8„  d   QhRS[ RS[S[,          RS[ /# )r7   r8   r˜   rt   )r3   ru   rä   )r;   r<   s   "€r=   r>   r?   ´  s)   ø€ ÷  ñ  Ùð Ù48¹3µJð á	ñ r@   c                óV   € V P                  R4       V P                  R4       Wn        V # )a¹  Specifies whether :attr:`telegram.ext.Application.bot` should allow arbitrary objects as
callback data for :class:`telegram.InlineKeyboardButton` and how many keyboards should be
cached in memory. If not called, only strings can be used as callback data and no data will
be stored in memory.

Important:
    If you want to use this feature, you must install PTB with the optional requirement
    ``callback-data``, i.e.

    .. code-block:: bash

       pip install "python-telegram-bot[callback-data]"

Examples:
    :any:`Arbitrary callback_data Bot <examples.arbitrarycallbackdatabot>`

.. seealso:: :wiki:`Arbitrary callback_data <Arbitrary-callback_data>`

Args:
    arbitrary_callback_data (:obj:`bool` | :obj:`int`): If :obj:`True` is passed, the
        default cache size of ``1024`` will be used. Pass an integer to specify a different
        cache size.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r˜   )r¦   r«   r]   )r8   r˜   s   &&r=   r˜   Ú*ApplicationBuilder.arbitrary_callback_data´  s+   € ð: 	�‰Ð1Ô2Ø×ÑÐ5Ô6Ø(?Ô%Øˆr@   c                ó,   <€ V ^8„  d   QhRS[ RS[RS[ /# )r7   r8   r›   rt   )r3   ru   )r;   r<   s   "€r=   r>   r?   Ö  s"   ø€ ÷ ñ ™ð ±$ð ¹;ñ r@   c                óV   € V P                  R4       V P                  R4       Wn        V # )a€  Specifies the value for :paramref:`~telegram.Bot.local_mode` for the
:attr:`telegram.ext.Application.bot`.
If not called, will default to :obj:`False`.

.. seealso:: :wiki:`Local Bot API Server <Local-Bot-API-Server>`

Args:
    local_mode (:obj:`bool`): Whether the bot should run in local mode.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r›   )r¦   r«   r^   )r8   r›   s   &&r=   r›   ÚApplicationBuilder.local_modeÖ  s)   € ð 	�‰˜Ô%Ø×Ñ˜LÔ)Ø%ÔØˆr@   c                ó(   <€ V ^8„  d   QhRRRS[ RR/# )r7   r8   r®   r°   rt   z-ApplicationBuilder[InBT, CCT, UD, CD, BD, JQ])r,   )r;   r<   s   "€r=   r>   r?   è  s'   ø€ ÷ ñ Ø;ðáðð 
9ñr@   c                óÖ   € V P                  R4       \         FG  w  r#\        \        V RV 24      \        4      '       d   K*  \        \        P                  RV4      4      h	  Wn        V # )a"  Sets a :class:`telegram.Bot` instance for
:attr:`telegram.ext.Application.bot`. Instances of subclasses like
:class:`telegram.ext.ExtBot` are also valid.

Args:
    bot (:class:`telegram.Bot`): The bot.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r°   rx   )	r«   Ú_BOT_CHECKSr„   r…   r   rb   r¤   r;   r_   )r8   r°   rÕ   Úerrors   &&  r=   r°   ÚApplicationBuilder.botè  s\   € ð 	×Ñ˜EÔ"ß&‰KˆDÜœg d¨a°¨v¨JÓ7¼×FÔFÜ"¤=×#7Ñ#7¸¸uÓ#EÓFÐFñ 'ð Œ	Øˆr@   c                ó*   <€ V ^8„  d   QhRS[ RRRS[ /# )r7   r8   r±   zQueue[object]rt   r4  )r;   r<   s   "€r=   r>   r?   ý  s"   ø€ ÷ ñ ™;ð °oð É+ñ r@   c                ó~   € V P                   \        R39  d    \        \        P	                  RR4      4      hWn        V # )aÔ  Sets a :class:`asyncio.Queue` instance for
:attr:`telegram.ext.Application.update_queue`, i.e. the queue that the application will
fetch updates from. Will also be used for the :attr:`telegram.ext.Application.updater`.
If not called, a queue will be instantiated.

.. seealso:: :attr:`telegram.ext.Updater.update_queue`

Args:
    update_queue (:class:`asyncio.Queue`): The queue.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
Nr±   rÓ   )ri   r   rb   r¤   r;   r`   )r8   r±   s   &&r=   r±   ÚApplicationBuilder.update_queueý  s9   € ð �=‰=¤¨tÐ 4Ô4Üœ}×3Ñ3°NÐDVÓWÓXÐXØ)ÔØˆr@   c                ó*   <€ V ^8„  d   QhRS[ RRRS[ /# )r7   r8   Úconcurrent_updatesz bool | int | BaseUpdateProcessorrt   r4  )r;   r<   s   "€r=   r>   r?     s%   ø€ ÷ -ñ -Ùð-Ø/Qð-á	ñ-r@   c                óv   € VRJ d   RpMVRJ d   ^p\        V\        4      '       d   \        V4      pWn        V # )a¤  Specifies if and how many updates may be processed concurrently instead of one by one.
If not called, updates will be processed one by one.

Warning:
    Processing updates concurrently is not recommended when stateful handlers like
    :class:`telegram.ext.ConversationHandler` are used. Only use this if you are sure
    that your bot does not (explicitly or implicitly) rely on updates being processed
    sequentially.

.. include:: inclusions/pool_size_tip.rst

.. seealso:: :attr:`telegram.ext.Application.concurrent_updates`

Args:
    concurrent_updates (:obj:`bool` | :obj:`int` | :class:`BaseUpdateProcessor`): Passing
        :obj:`True` will allow for ``256`` updates to be processed concurrently using
        :class:`telegram.ext.SimpleUpdateProcessor`. Pass an integer to specify a different
        number of updates that may be processed concurrently. Pass an instance of
        :class:`telegram.ext.BaseUpdateProcessor` to use that instance for handling updates
        concurrently.

        .. versionchanged:: 20.4
            Now accepts :class:`BaseUpdateProcessor` instances.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
Tr}   F)r„   rä   r   rh   )r8   rF  s   &&r=   rF  Ú%ApplicationBuilder.concurrent_updates  sJ   € ð>  Ó%Ø!$ÑØ 5Ó(Ø!"Ðô
 Ð(¬#×.Ò.Ü!6Ð7IÓ!JÐð 7IÔØˆr@   c                ó(   <€ V ^8„  d   QhRRRS[ RR/# )r7   r8   r®   r³   rt   z-ApplicationBuilder[BT, CCT, UD, CD, BD, InJQ])r.   )r;   r<   s   "€r=   r>   r?   ?  s'   ø€ ÷ ñ Ø;ðáðð 
9ñr@   c                ó   € Wn         V # )aE  Sets a :class:`telegram.ext.JobQueue` instance for
:attr:`telegram.ext.Application.job_queue`. If not called, a job queue will be
instantiated if the requirements of :class:`telegram.ext.JobQueue` are installed.

Examples:
    :any:`Timer Bot <examples.timerbot>`

.. seealso:: :wiki:`Job Queue <Extensions---JobQueue>`

Note:
    * :meth:`telegram.ext.JobQueue.set_application` will be called automatically by
      :meth:`build`.
    * The job queue will be automatically started and stopped by
      :meth:`telegram.ext.Application.start` and :meth:`telegram.ext.Application.stop`,
      respectively.
    * When passing :obj:`None` or when the requirements of :class:`telegram.ext.JobQueue`
      are not installed, :attr:`telegram.ext.ConversationHandler.conversation_timeout`
      can not be used, as this uses :attr:`telegram.ext.Application.job_queue` internally.

Args:
    job_queue (:class:`telegram.ext.JobQueue`): The job queue. Pass :obj:`None` if you
        don't want to use a job queue.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
)ra   )r8   r³   s   &&r=   r³   ÚApplicationBuilder.job_queue?  s   € ð< $ŒØˆr@   c                ó*   <€ V ^8„  d   QhRS[ RRRS[ /# )r7   r8   r´   zBasePersistence[Any, Any, Any]rt   r4  )r;   r<   s   "€r=   r>   r?   `  s%   ø€ ÷ ñ ÙðØ(Hðá	ñr@   c                ó   € Wn         V # )aS  Sets a :class:`telegram.ext.BasePersistence` instance for
:attr:`telegram.ext.Application.persistence`.

Note:
    When using a persistence, note that all
    data stored in :attr:`context.user_data <telegram.ext.CallbackContext.user_data>`,
    :attr:`context.chat_data <telegram.ext.CallbackContext.chat_data>`,
    :attr:`context.bot_data <telegram.ext.CallbackContext.bot_data>` and
    in :attr:`telegram.ext.ExtBot.callback_data_cache` must be copyable with
    :func:`copy.deepcopy`. This is due to the data being deep copied before handing it over
    to the persistence in order to avoid race conditions.

Examples:
    :any:`Persistent Conversation Bot <examples.persistentconversationbot>`

.. seealso:: :wiki:`Making Your Bot Persistent <Making-your-bot-persistent>`

Warning:
    If a :class:`telegram.ext.ContextTypes` instance is set via :meth:`context_types`,
    the persistence instance must use the same types!

Args:
    persistence (:class:`telegram.ext.BasePersistence`): The persistence instance.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
)rd   )r8   r´   s   &&r=   r´   ÚApplicationBuilder.persistence`  s   € ð< (ÔØˆr@   c                ó&   <€ V ^8„  d   QhRRRRRR/# )r7   r8   r®   rµ   z%ContextTypes[InCCT, InUD, InCD, InBD]rt   z3ApplicationBuilder[BT, InCCT, InUD, InCD, InBD, JQ]r:   )r;   r<   s   "€r=   r>   r?   �  s'   ø€ ÷ ñ Ø;ðà>ðð 
?ñr@   c                ó   € Wn         V # )aS  Sets a :class:`telegram.ext.ContextTypes` instance for
:attr:`telegram.ext.Application.context_types`.

Examples:
    :any:`Context Types Bot <examples.contexttypesbot>`

Args:
    context_types (:class:`telegram.ext.ContextTypes`): The context types.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
)re   )r8   rµ   s   &&r=   rµ   Ú ApplicationBuilder.context_types�  s   € ð  ,ÔØˆr@   c                ó:   <€ V ^8„  d   QhRS[ RS[R,          RS[ /# )r7   r8   rª   Nrt   )r3   r   )r;   r<   s   "€r=   r>   r?   ”  s&   ø€ ÷ ñ ‘kð ©G°d­Nð ¹{ñ r@   c                ó€  € Vf	   Wn         V # V P                  R3V P                  R33 F:  w  r#\        V\        4      '       d   K  \        \        P                  RV4      4      h	  \         FG  w  rC\        \        V RV 24      \        4      '       d   K*  \        \        P                  RV4      4      h	  Wn         V # )a	  Sets a :class:`telegram.ext.Updater` instance for
:attr:`telegram.ext.Application.updater`. The :attr:`telegram.ext.Updater.bot` and
:attr:`telegram.ext.Updater.update_queue` will be used for
:attr:`telegram.ext.Application.bot` and :attr:`telegram.ext.Application.update_queue`,
respectively.

Args:
    updater (:class:`telegram.ext.Updater` | :obj:`None`): The updater instance or
        :obj:`None` if no updater should be used.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
r£   r±   rª   rx   )
ri   r_   r`   r„   r   rb   r¤   r;   r?  r…   )r8   rª   rÕ   r@  Ú	attr_names   &&   r=   rª   ÚApplicationBuilder.updater”  s±   € ð Š?Ø#ŒMØˆKð �Y‰Y˜Ð'Ø×Ñ Ð0ó
‰KˆDô ˜d¤L×1Ô1Ü"¤=×#7Ñ#7¸	À5Ó#IÓJÐJñ
÷ !,ÑˆIÜœg d¨a°	¨{¨OÓ<¼l×KÔKÜ"¤=×#7Ñ#7¸	À5Ó#IÓJÐJñ !,ð  ŒØˆr@   c          	      ó\   <€ V ^8„  d   QhRS[ RS[S[.S[S[S[R3,          3,          RS[ /# )r7   r8   r¶   Nrt   ©r3   r   r   r   r   )r;   r<   s   "€r=   r>   r?   ´  s=   ø€ ÷ %ñ %Ùð%Ù&.±¨}¹iÉÉSÐRVÈÕ>WÐ/WÕ&Xð%á	ñ%r@   c                ó   € Wn         V # )ax  
Sets a callback to be executed by :meth:`Application.run_polling` and
:meth:`Application.run_webhook` *after* executing :meth:`Application.initialize` but
*before* executing :meth:`Updater.start_polling` or :meth:`Updater.start_webhook`,
respectively.

Tip:
    This can be used for custom startup logic that requires to await coroutines, e.g.
    setting up the bots commands via :meth:`~telegram.Bot.set_my_commands`.

Example:
    .. code::

        async def post_init(application: Application) -> None:
            await application.bot.set_my_commands([('start', 'Starts the bot')])

        application = Application.builder().token("TOKEN").post_init(post_init).build()

Note:
    |post_methods_note|

.. seealso:: :meth:`post_stop`, :meth:`post_shutdown`

Args:
    post_init (:term:`coroutine function`): The custom callback. Must be a
        :term:`coroutine function` and must accept exactly one positional argument, which
        is the :class:`~telegram.ext.Application`::

            async def post_init(application: Application) -> None:

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
)rj   )r8   r¶   s   &&r=   r¶   ÚApplicationBuilder.post_init´  s   € ðH $ŒØˆr@   c          	      ó\   <€ V ^8„  d   QhRS[ RS[S[.S[S[S[R3,          3,          RS[ /# )r7   r8   r·   Nrt   rW  )r;   r<   s   "€r=   r>   r?   Û  s>   ø€ ÷ 'ñ 'Ùð'Ù*2±K°=Á)ÉCÑQTÐVZÈNÕB[Ð3[Õ*\ð'á	ñ'r@   c                ó   € Wn         V # )ac  
Sets a callback to be executed by :meth:`Application.run_polling` and
:meth:`Application.run_webhook` *after* executing :meth:`Updater.shutdown`
and :meth:`Application.shutdown`.

Tip:
    This can be used for custom shutdown logic that requires to await coroutines, e.g.
    closing a database connection

Example:
    .. code::

        async def post_shutdown(application: Application) -> None:
            await application.bot_data['database'].close()

        application = Application.builder()
                                .token("TOKEN")
                                .post_shutdown(post_shutdown)
                                .build()

Note:
    |post_methods_note|

.. seealso:: :meth:`post_init`, :meth:`post_stop`

Args:
    post_shutdown (:term:`coroutine function`): The custom callback. Must be a
        :term:`coroutine function` and must accept exactly one positional argument, which
        is the :class:`~telegram.ext.Application`::

            async def post_shutdown(application: Application) -> None:

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
)rk   )r8   r·   s   &&r=   r·   Ú ApplicationBuilder.post_shutdownÛ  s   € ðL ,ÔØˆr@   c          	      ó\   <€ V ^8„  d   QhRS[ RS[S[.S[S[S[R3,          3,          RS[ /# )r7   r8   r¸   Nrt   rW  )r;   r<   s   "€r=   r>   r?     s=   ø€ ÷ /ñ /Ùð/Ù&.±¨}¹iÉÉSÐRVÈÕ>WÐ/WÕ&Xð/á	ñ/r@   c                ó   € Wn         V # )a¡  
Sets a callback to be executed by :meth:`Application.run_polling` and
:meth:`Application.run_webhook` *after* executing :meth:`Updater.stop`
and :meth:`Application.stop`.

.. versionadded:: 20.1

Tip:
    This can be used for custom stop logic that requires to await coroutines, e.g.
    sending message to a chat before shutting down the bot.

Hint:
    The callback will be called only, if :meth:`Application.stop` was indeed called
    successfully. For example, if the application is stopped early by calling
    :meth:`Application.stop_running` within :meth:`post_init`, then the set callback will
    *not* be called.

Example:
    .. code::

        async def post_stop(application: Application) -> None:
            await application.bot.send_message(123456, "Shutting down...")

        application = Application.builder()
                                .token("TOKEN")
                                .post_stop(post_stop)
                                .build()

Note:
    |post_methods_note|

.. seealso:: :meth:`post_init`, :meth:`post_shutdown`

Args:
    post_stop (:term:`coroutine function`): The custom callback. Must be a
        :term:`coroutine function` and must accept exactly one positional argument, which
        is the :class:`~telegram.ext.Application`::

            async def post_stop(application: Application) -> None:

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
)rl   )r8   r¸   s   &&r=   r¸   ÚApplicationBuilder.post_stop  s   € ð\ $ŒØˆr@   c                ó&   <€ V ^8„  d   QhRRRRRR/# )r7   r8   r®   rš   zBaseRateLimiter[RLARGS]rt   z7ApplicationBuilder[ExtBot[RLARGS], CCT, UD, CD, BD, JQ]r:   )r;   r<   s   "€r=   r>   r?   5  s(   ø€ ÷ ñ Ø;ðà/ðð 
Cñr@   c                óV   € V P                  R4       V P                  R4       Wn        V # )aH  Sets a :class:`telegram.ext.BaseRateLimiter` instance for the
:paramref:`telegram.ext.ExtBot.rate_limiter` parameter of
:attr:`telegram.ext.Application.bot`.

Args:
    rate_limiter (:class:`telegram.ext.BaseRateLimiter`): The rate limiter.

Returns:
    :class:`ApplicationBuilder`: The same builder with the updated argument.
rš   )r¦   r«   rm   )r8   rš   s   &&r=   rš   ÚApplicationBuilder.rate_limiter5  s)   € ð 	�‰˜Ô'Ø×Ñ˜NÔ+Ø)ÔØˆr@   )(rf   rg   r]   rG   rF   r_   rK   rH   re   r\   rT   rQ   rY   rW   rR   rU   rX   rS   rV   rn   ra   r^   rN   rd   rO   rj   rk   rl   rZ   r[   rI   rm   rL   rP   rJ   rE   rh   r`   ri   rM   )N)6Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__rp   r�   rœ   r¦   r«   r¼   r¿   r’   r“   r”   rÖ   rÜ   ry   r|   rz   r{   r~   r   r€   r‚   r�   rƒ   r™   r  r  r  r  r  r"  r&  r*  r•   r—   r˜   r›   r°   r±   rF  r³   r´   rµ   rª   r¶   r·   r¸   rš   Ú__static_attributes__Ú__classdictcell__)r<   s   @r=   r4   r4   d   sò  ø‡ € ñð>)€I÷V1?ð 1?÷f'
ð '
÷R
ð 
÷$Kð K÷Fð F÷7ð 7÷rò ÷6ð ÷ð ÷,ð ÷,Oð O÷>ð ÷(ð ÷ ð ÷&ð ÷(ð ÷&ð ÷$ð ÷$ð ÷$ð ÷$ð ÷('ð '÷Rð ÷"ð ÷&ð ÷,ð ÷*ð ÷(ð ÷(ð ÷(ð ÷((ð (÷T#ò #÷Jð ÷" ð  ÷Dð ÷$ð ÷*ð ÷&-ð -÷^ð ÷Bð ÷Bð ÷&ð ÷@%ð %÷N'ð '÷R/ð /÷bö r@   ))ry   rÛ   )r™   rÚ   )r|   r|   )rz   rz   )r{   r{   )r�   r�   )r~   r~   )r   r   )r€   r€   )r‚   r‚   )rƒ   rƒ   )r  r  )r  r  )r  r  )r&  r&  )r  r  )r  r  )r"  r"  )r*  r*  )r”   r”   )r“   r“   )r’   r’   )r—   r—   )r˜   r˜   )r•   r•   )rš   zrate_limiter instance)r›   zlocal_mode setting)Jrg  Úasyncior   Úcollections.abcr   r   r   Úpathlibr   Útypingr   r   r	   r
   rê   Útelegram._botr   Útelegram._utils.defaultvaluer   r   r   Útelegram._utils.typesr   r   r   r   r   r   r   Útelegram.ext._applicationr   Ú!telegram.ext._baseupdateprocessorr   r   Útelegram.ext._contexttypesr   Útelegram.ext._extbotr   Útelegram.ext._jobqueuer   Útelegram.ext._updaterr   Útelegram.ext._utils.typesr   r   r    r!   r"   r#   Útelegram.requestr$   Útelegram.request._httpxrequestr%   Útelegramr&   Útelegram.extr'   r(   r)   r*   r+   r,   r.   r/   r0   r1   r2   r3   r?  r¤   r4   ÚDEFAULT_TYPErÂ   r9   r:   r@   r=   Ú<module>r~     s=  ðñ& Lå ß ;Ñ ;Ý ß 7Ó 7ã å ß RÑ R÷÷ ñ õ 2ß XÝ 3Ý 'Ý +Ý )ß =× =Ý (Ý 7çÝßXÓXÝ0ñ ˆv˜SÔ!€Ùˆv˜T H�_Ô-€Ù�Ð0Ô1€Ùˆvƒ€Ùˆvƒ€Ùˆvƒ€Ù�mÐ+?Ô@€ò€ð< H€ôb˜  S¨"¨b°"°bÐ!8Õ9ô bðL' Øˆt�Ø×!Ñ!ØˆS�#ˆX�ØˆS�#ˆX�ØˆS�#ˆX�Ø�×*Ñ*Õ+ð	-õò r@   