+
    ÁFñjc   ã                   ó,  € R t ^ RIt^ RIHt ^ RIHt ^ RIHt Rt	 ! R R]
4      t ! R R	]4      t ! R R
]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      tR# )zŒThis module contains classes that represent Telegram errors.

.. versionchanged:: 20.0
    Replaced ``Unauthorized`` by :class:`Forbidden`.
N)Úto_timedelta)Úget_timedelta_value©Ú
TimePeriodÚ
BadRequestÚChatMigratedÚConflictÚEndPointNotFoundÚ	ForbiddenÚInvalidTokenÚNetworkErrorÚPassportDecryptionErrorÚ
RetryAfterÚTelegramErrorÚTimedOutc                   ó|   a a€ ] tR t^.t oRtR
tV3R lV 3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	R
t
VtV ;t# )r   aá  
Base class for Telegram errors.

Tip:
    Objects of this type can be serialized via Python's :mod:`pickle` module and pickled
    objects from one version of PTB are usually loadable in future versions. However, we can
    not guarantee that this compatibility will always be provided. At least a manual one-time
    conversion of the data may be needed on major updates of the library.

.. seealso:: :wiki:`Exceptions, Warnings and Logging <Exceptions%2C-Warnings-and-Logging>`
c                ó    <€ V ^8„  d   QhRS[ /# ©é   Úmessage©Ústr)ÚformatÚ__classdict__s   "€ÚD/opt/hermes-site/venv/lib/python3.14/site-packages/telegram/error.pyÚ__annotate__ÚTelegramError.__annotate__=   s   ø€ ÷ 	 ñ 	 ¡ñ 	 ó    c                óÂ   <€ \         SV `  4        VP                  R 4      pVP                  R4      pVP                  R4      pW!8w  d   VP                  4       pW n        R# )zError: z	[Error]: zBad Request: N)ÚsuperÚ__init__ÚremoveprefixÚ
capitalizer   )Úselfr   ÚmsgÚ	__class__s   && €r   r    ÚTelegramError.__init__=   sT   ø€ Ü‰ÑÔà×"Ñ" 9Ó-ˆØ×Ñ˜{Ó+ˆØ×Ñ˜Ó/ˆØŒ>à—.‘.Ó"ˆCØŽr   c                ó    <€ V ^8„  d   QhRS[ /# ©r   Úreturnr   )r   r   s   "€r   r   r   H   s   ø€ ÷ ñ ™ñ r   c                ó   € V P                   # )zOGives the string representation of exceptions message.

Returns:
   :obj:`str`
©r   ©r#   s   &r   Ú__str__ÚTelegramError.__str__H   s   € ð �|‰|Ðr   c                ó    <€ V ^8„  d   QhRS[ /# r(   r   )r   r   s   "€r   r   r   P   s   ø€ ÷ >ñ >™#ñ >r   c                óN   € V P                   P                   RV P                   R2# )zUGives an unambiguous string representation of the exception.

Returns:
   :obj:`str`
z('z'))r%   Ú__name__r   r,   s   &r   Ú__repr__ÚTelegramError.__repr__P   s&   € ð —.‘.×)Ñ)Ð*¨"¨T¯\©\¨N¸"Ð=Ð=r   c                óF   <€ V ^8„  d   QhRS[ S[S[ S[,          3,          /# r(   ©ÚtupleÚtyper   )r   r   s   "€r   r   r   X   s"   ø€ ÷ 	/ñ 	/™E¡$©©c­
Ð"2Õ3ñ 	/r   c                ó4   € V P                   V P                  33# )z�Defines how to serialize the exception for pickle.

.. seealso::
       :py:meth:`object.__reduce__`, :mod:`pickle`.

Returns:
    :obj:`tuple`
©r%   r   r,   s   &r   Ú
__reduce__ÚTelegramError.__reduce__X   s   € ð �~‰~ §¡˜Ð.Ð.r   r+   )r1   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r    r-   r2   r:   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r%   r   s   @@r   r   r   .   s>   ù‡ € ñ
ð €I÷	 ó 	 ÷ð ÷>ð >÷	/÷ 	/ð 	/r   c                   ó   € ] tR t^dtRtRtRtR# )r
   zÒRaised when the bot has not enough rights to perform the requested action.

Examples:
    :any:`Raw API Bot <examples.rawapibot>`

.. versionchanged:: 20.0
    This class was previously named ``Unauthorized``.
© N©r1   r<   r=   r>   r?   r@   rA   rF   r   r   r
   r
   d   s   † ñð „Ir   c                   óJ   a a€ ] tR t^qt oRtRtRV3R lV 3R llltRtVtV ;t	# )r   z�Raised when the token is invalid.

Args:
    message (:obj:`str`, optional): Any additional information about the exception.

        .. versionadded:: 20.0
c                ó2   <€ V ^8„  d   QhRS[ R,          RR/# ©r   r   Nr)   r   )r   r   s   "€r   r   ÚInvalidToken.__annotate__|   s#   ø€ ÷ Jñ J¡ d¥
ð J°dñ Jr   c                ó>   <€ \         ST `  Vf	   R4       R # T4       R # )NzInvalid token©r   r    ©r#   r   r%   s   &&€r   r    ÚInvalidToken.__init__|   s   ø€ Ü‰Ñ¨GªO˜ÖIÀÖIr   rF   ©N©
r1   r<   r=   r>   r?   r@   r    rA   rB   rC   rD   s   @@r   r   r   q   s#   ù‡ € ñð €I÷J÷ Jõ Jr   c                   ó   € ] tR t^€tRtRtRtR# )r	   z€Raised when the requested endpoint is not found. Only relevant for
:meth:`telegram.Bot.do_api_request`.

.. versionadded:: 20.8
rF   NrG   rF   r   r   r	   r	   €   s   † ñð „Ir   c                   ó   € ] tR t^ŠtRtRtRtR# )r   a:  Base class for exceptions due to networking errors.

Tip:
    This exception (and its subclasses) usually originates from the networking backend
    used by :class:`~telegram.request.HTTPXRequest`, or a custom implementation of
    :class:`~telegram.request.BaseRequest`. In this case, the original exception can be
    accessed via the ``__cause__``
    `attribute <https://docs.python.org/3/library/exceptions.html#exception-context>`_.

Examples:
    :any:`Raw API Bot <examples.rawapibot>`

.. seealso::
    :wiki:`Handling network errors <Handling-network-errors>`
rF   NrG   rF   r   r   r   r   Š   s   † ñð  „Ir   c                   ó   € ] tR t^žtRtRtRtR# )r   z=Raised when Telegram could not process the request correctly.rF   NrG   rF   r   r   r   r   ž   s
   † ÙGà„Ir   c                   óJ   a a€ ] tR t^¤t oRtRtRV3R lV 3R llltRtVtV ;t	# )r   zöRaised when a request took too long to finish.

.. seealso::
    :wiki:`Handling network errors <Handling-network-errors>`

Args:
    message (:obj:`str`, optional): Any additional information about the exception.

        .. versionadded:: 20.0
c                ó2   <€ V ^8„  d   QhRS[ R,          RR/# rJ   r   )r   r   s   "€r   r   ÚTimedOut.__annotate__²   s   ø€ ÷ 1ñ 1¡ d¥
ð 1°dñ 1r   c                ó:   <€ \         ST `  T;'       g    R 4       R# )z	Timed outNrM   rN   s   &&€r   r    ÚTimedOut.__init__²   s   ø€ Ü‰Ñ˜×/Ð/ KÖ0r   rF   rP   rQ   rD   s   @@r   r   r   ¤   s    ù‡ € ñ	ð €I÷1÷ 1õ 1r   c                   óX   a a€ ] tR t^¶t oRtRtV3R lV 3R lltV3R lR ltRtVt	V ;t
# )r   aO  
Raised when the requested group chat migrated to supergroup and has a new chat id.

.. seealso::
    :wiki:`Storing Bot, User and Chat Related Data <Storing-bot%2C-user-and-chat-related-data>`

Args:
    new_chat_id (:obj:`int`): The new chat id of the group.

Attributes:
    new_chat_id (:obj:`int`): The new chat id of the group.

c                ó    <€ V ^8„  d   QhRS[ /# )r   Únew_chat_id)Úint)r   r   s   "€r   r   ÚChatMigrated.__annotate__Ç   s   ø€ ÷ ,ñ ,¡Cñ ,r   c                ó8   <€ \         SV `  R V 24       Wn        R# )z+Group migrated to supergroup. New chat id: N)r   r    r\   )r#   r\   r%   s   &&€r   r    ÚChatMigrated.__init__Ç   s   ø€ Ü‰ÑÐFÀ{ÀmÐTÔUØ +Ör   c                óF   <€ V ^8„  d   QhRS[ S[S[ S[,          3,          /# r(   )r6   r7   r]   )r   r   s   "€r   r   r^   Ë   s"   ø€ ÷ 3ñ 3™E¡$©©c­
Ð"2Õ3ñ 3r   c                ó4   € V P                   V P                  33# rP   )r%   r\   r,   s   &r   r:   ÚChatMigrated.__reduce__Ë   s   € Ø�~‰~ × 0Ñ 0Ð2Ð2Ð2r   )r\   ©r1   r<   r=   r>   r?   r@   r    r:   rA   rB   rC   rD   s   @@r   r   r   ¶   s*   ù‡ € ñð !€I÷,ó ,÷3÷ 3ð 3r   c                   ót   a a€ ] tR t^Ït oRtRtV3R lV 3R llt]V3R lR l4       tV3R lR lt	Rt
VtV ;t# )	r   a)  
Raised when flood limits where exceeded.

.. versionchanged:: 20.0
   :attr:`retry_after` is now an integer to comply with the Bot API.

Args:
    retry_after (:obj:`int` | :class:`datetime.timedelta`): Time in seconds, after which the
        bot can retry the request.

        .. versionchanged:: v22.2
            |time-period-input|

Attributes:
    retry_after (:obj:`int` | :class:`datetime.timedelta`): Time in seconds, after which the
        bot can retry the request.

        .. deprecated:: v22.2
            |time-period-int-deprecated|

c                ó    <€ V ^8„  d   QhRS[ /# )r   Úretry_afterr   )r   r   s   "€r   r   ÚRetryAfter.__annotate__è   s   ø€ ÷ Wñ W¡Jñ Wr   c                óà   <€ \        V4      V n        \        V P                  \        4      '       d    \
        SV `  R V P                   R24       R# \
        SV `  R V P                  : 24       R# )z!Flood control exceeded. Retry in z secondsN)r   Ú_retry_afterÚ
isinstancerg   r]   r   r    )r#   rg   r%   s   &&€r   r    ÚRetryAfter.__init__è   s^   ø€ Ü+7¸Ó+DˆÔä�d×&Ñ&¬×,Ò,Ü‰GÑÐ@À×AQÑAQÐ@RÐRZÐ[Ö\ä‰GÑÐ@À×AQÑAQÑ@TÐUÖVr   c                óD   <€ V ^8„  d   QhRS[ S[P                  ,          /# r(   )r]   ÚdtmÚ	timedelta)r   r   s   "€r   r   rh   ñ   s   ø€ ÷ 
ñ 
™S¡3§=¡=Õ0ñ 
r   c                ó0   € \        V P                  R R7      # )rg   )Ú	attribute)r   rj   r,   s   &r   rg   ÚRetryAfter.retry_afterð   s   € ô #Ø×Ñ¨ô
ð 	
r   c                óF   <€ V ^8„  d   QhRS[ S[S[ S[,          3,          /# r(   )r6   r7   Úfloat)r   r   s   "€r   r   rh   ÷   s%   ø€ ÷ Iñ I™E¡$©©e­Ð"4Õ5ñ Ir   c                ób   € V P                   \        V P                  P                  4       4      33# rP   )r%   r]   rj   Útotal_secondsr,   s   &r   r:   ÚRetryAfter.__reduce__÷   s*   € ð �~‰~¤ D×$5Ñ$5×$CÑ$CÓ$EÓ FÐHÐHÐHr   )rj   )r1   r<   r=   r>   r?   r@   r    Úpropertyrg   r:   rA   rB   rC   rD   s   @@r   r   r   Ï   sC   ù‡ € ñð, "€I÷Wó Wð ÷
ó ð
÷I÷ Ið Ir   c                   ó:   a € ] tR t^ýt o RtRtV 3R lR ltRtV tR# )r   z>Raised when a long poll or webhook conflicts with another one.c                óF   <€ V ^8„  d   QhRS[ S[S[ S[,          3,          /# r(   r5   )r   r   s   "€r   r   ÚConflict.__annotate__  s"   ø€ ÷ /ñ /™E¡$©©c­
Ð"2Õ3ñ /r   c                ó4   € V P                   V P                  33# rP   r9   r,   s   &r   r:   ÚConflict.__reduce__  s   € Ø�~‰~ §¡˜Ð.Ð.r   rF   N)	r1   r<   r=   r>   r?   r@   r:   rA   rB   )r   s   @r   r   r   ý   s   ø‡ € ÙHà€I÷/ö /r   c                   óX   a a€ ] tR tRt oRtRtV3R lV 3R lltV3R lR ltRtVt	V ;t
# )r   i  zÀSomething went wrong with decryption.

.. versionchanged:: 20.0
    This class was previously named ``TelegramDecryptionError`` and was available via
    ``telegram.TelegramDecryptionError``.
c                ó0   <€ V ^8„  d   QhRS[ S[,          /# r   )r   Ú	Exception)r   r   s   "€r   r   Ú$PassportDecryptionError.__annotate__  s   ø€ ÷ !ñ !¡¡i¥ñ !r   c                óL   <€ \         SV `  R V 24       \        V4      V n        R# )zPassportDecryptionError: N)r   r    r   Ú_msgrN   s   &&€r   r    Ú PassportDecryptionError.__init__  s#   ø€ Ü‰ÑÐ4°W°IÐ>Ô?Ü˜“LˆŽ	r   c                óF   <€ V ^8„  d   QhRS[ S[S[ S[,          3,          /# r(   r5   )r   r   s   "€r   r   r�     s"   ø€ ÷ ,ñ ,™E¡$©©c­
Ð"2Õ3ñ ,r   c                ó4   € V P                   V P                  33# rP   )r%   rƒ   r,   s   &r   r:   Ú"PassportDecryptionError.__reduce__  s   € Ø�~‰~ §	¡	˜|Ð+Ð+r   )rƒ   rd   rD   s   @@r   r   r     s*   ù‡ € ñð €I÷!ó !÷,÷ ,ð ,r   )r   r   r   r	   r
   r   r   r   r   r   r   )r?   Údatetimern   Útelegram._utils.argumentparsingr   Útelegram._utils.datetimer   Útelegram._utils.typesr   Ú__all__r€   r   r
   r   r	   r   r   r   r   r   r   r   rF   r   r   Ú<module>r�      s©   ðñ&ó å 8Ý 8Ý ,ð€ô3/�Iô 3/ôl
�ô 
ôJ�=ô Jô�}ô ô�=ô ô(�ô ô1ˆ|ô 1ô$3�=ô 3ô2+I�ô +Iô\/ˆ}ô /ô,˜mö ,r   