Ë
    ö­¦j�  ã                   óÖ  — d dl mZ d dlmZ d dlmZ d dlmZ  G d„ de«      Z	 G d„ de	«      Z
 G d	„ d
e	«      Z G d„ de	«      Z G d„ de
«      Z G d„ de
«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ d e«      Z G d!„ d"e«      Z G d#„ d$e«      Z G d%„ d&e«      Z G d'„ d(e	«      Z G d)„ d*e
«      Zy+),é    )ÚAny)ÚTelegramMethod)ÚTelegramType)Údocs_urlc                   ó   — e Zd ZdZy)ÚAiogramErrorz0
    Base exception for all aiogram errors.
    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úE/var/www/html/venv/lib/python3.12/site-packages/aiogram/exceptions.pyr   r      ó   „ òr   r   c                   óN   — e Zd ZU dZdZedz  ed<   deddfd„Zdefd„Zdefd„Z	y)	ÚDetailedAiogramErrorzF
    Base exception for all aiogram errors with detailed message.
    NÚurlÚmessageÚreturnc                 ó   — || _         y ©N©r   ©Úselfr   s     r   Ú__init__zDetailedAiogramError.__init__   s	   € Øˆ�r   c                 ó\   — | j                   }| j                  r|d| j                  › d�z  }|S )Nz
(background on this error at: ú))r   r   r   s     r   Ú__str__zDetailedAiogramError.__str__   s/   € Ø—,‘,ˆØ�8Š8ØÐ9¸$¿(¹(¸À1ÐEÑEˆGØˆr   c                 ó8   — t        | «      j                  › d| › d�S )Nz('z'))Útyper
   )r   s    r   Ú__repr__zDetailedAiogramError.__repr__   s    € Ü�t“*×%Ñ%Ð& b¨¨¨bÐ1Ð1r   )
r
   r   r   r   r   ÚstrÚ__annotations__r   r   r"   r   r   r   r   r      sB   … ñð €Cˆˆt‰Óð ð ¨ó ð˜ó ð2˜#ô 2r   r   c                   ó   — e Zd ZdZy)ÚCallbackAnswerExceptionz(
    Exception for callback answer.
    Nr	   r   r   r   r&   r&   "   r   r   r&   c                   ó   — e Zd ZdZy)ÚSceneExceptionz
    Exception for scenes.
    Nr	   r   r   r   r(   r(   (   r   r   r(   c                   ó$   — e Zd ZdZ edd¬«      Zy)ÚUnsupportedKeywordArgumentzG
    Exception raised when a keyword argument is passed as filter.
    zmigration_2_to_3.htmlzfiltering-events)Ú	fragment_N)r
   r   r   r   r   r   r   r   r   r*   r*   .   s   „ ññ Ð*Ð6HÔ
I�Cr   r*   c                   óV   ‡ — e Zd ZU dZdZeed<   dee   deddfˆ fd„Z	defˆ fd	„Z
ˆ xZS )
ÚTelegramAPIErrorz5
    Base exception for all Telegram API errors.
    zTelegram server saysÚlabelÚmethodr   r   Nc                 ó4   •— t         ‰| �  |¬«       || _        y )Nr   )Úsuperr   r/   )r   r/   r   Ú	__class__s      €r   r   zTelegramAPIError.__init__=   s   ø€ ô
 	‰Ñ ÐÔ)Øˆ�r   c                 óB   •— t         ‰| �  «       }| j                  › d|› �S )Nz - )r1   r   r.   )r   Úoriginal_messager2   s     €r   r   zTelegramAPIError.__str__E   s'   ø€ Ü ™7™?Ó,ÐØ—*‘*�˜SÐ!1Ð 2Ð3Ð3r   )r
   r   r   r   r.   r#   r$   r   r   r   r   Ú__classcell__©r2   s   @r   r-   r-   6   sK   ø… ñð (€Eˆ3Ó'ðà˜|Ñ,ðð ðð 
õ	ð4˜÷ 4ñ 4r   r-   c                   ó   — e Zd ZdZdZy)ÚTelegramNetworkErrorz9
    Base exception for all Telegram network errors.
    zHTTP Client saysN)r
   r   r   r   r.   r   r   r   r8   r8   J   s   „ ñð �Er   r8   c                   ó>   ‡ — e Zd ZdZdZdee   dededdfˆ fd„Z	ˆ xZ
S )	ÚTelegramRetryAfterz6
    Exception raised when flood control exceeds.
    zOhttps://core.telegram.org/bots/faq#my-bot-is-hitting-limits-how-do-i-avoid-thisr/   r   Úretry_afterr   Nc                 ó¶   •— dt        |«      j                  ›�}t        |dd «      x}r|d|› �z  }|d|› d�z  }|d|› �z  }t        ‰| �  ||¬«       || _        y )Nz!Flood control exceeded on method Úchat_idz	 in chat z. Retry in z	 seconds.ú
Original description: ©r/   r   )r!   r
   Úgetattrr1   r   r;   )r   r/   r   r;   Údescriptionr=   r2   s         €r   r   zTelegramRetryAfter.__init__Y   s€   ø€ ð :¼$¸v»,×:OÑ:OÐ9RÐSˆÜ˜f i°Ó6Ð6ˆ7Ð6Ø˜Y w iÐ0Ñ0ˆKØ˜ [ M°Ð;Ñ;ˆØÐ1°'°Ð;Ñ;ˆä‰Ñ °ÐÔ<Ø&ˆÕr   ©r
   r   r   r   r   r   r   r#   Úintr   r5   r6   s   @r   r:   r:   R   sE   ø„ ñð \€Cð'à˜|Ñ,ð'ð ð'ð ð	'ð
 
÷'ñ 'r   r:   c                   ó>   ‡ — e Zd ZdZdZdee   dededdfˆ fd„Z	ˆ xZ
S )	ÚTelegramMigrateToChatzG
    Exception raised when chat has been migrated to a supergroup.
    z5https://core.telegram.org/bots/api#responseparametersr/   r   Úmigrate_to_chat_idr   Nc                 ó~   •— d|› �}t        |dd «      x}r|d|› �z  }|d|› �z  }t        ‰| �	  ||¬«       || _        y )Nz4The group has been migrated to a supergroup with id r=   z from r>   r?   )r@   r1   r   rF   )r   r/   r   rF   rA   r=   r2   s         €r   r   zTelegramMigrateToChat.__init__p   se   ø€ ð MÐM_ÐL`ÐaˆÜ˜f i°Ó6Ð6ˆ7Ð6Ø˜V G 9Ð-Ñ-ˆKØÐ1°'°Ð;Ñ;ˆÜ‰Ñ °ÐÔ<Ø"4ˆÕr   rB   r6   s   @r   rE   rE   i   sE   ø„ ñð B€Cð5à˜|Ñ,ð5ð ð5ð  ð	5ð
 
÷5ñ 5r   rE   c                   ó   — e Zd ZdZy)ÚTelegramBadRequestz5
    Exception raised when request is malformed.
    Nr	   r   r   r   rI   rI   ~   r   r   rI   c                   ó   — e Zd ZdZy)ÚTelegramNotFoundzD
    Exception raised when chat, message, user, etc. not found.
    Nr	   r   r   r   rK   rK   „   r   r   rK   c                   ó   — e Zd ZdZy)ÚTelegramConflictErrorza
    Exception raised when bot token is already used by another application in polling mode.
    Nr	   r   r   r   rM   rM   Š   r   r   rM   c                   ó   — e Zd ZdZy)ÚTelegramUnauthorizedErrorz5
    Exception raised when bot token is invalid.
    Nr	   r   r   r   rO   rO   �   r   r   rO   c                   ó   — e Zd ZdZy)ÚTelegramForbiddenErrorz?
    Exception raised when bot is kicked from chat or etc.
    Nr	   r   r   r   rQ   rQ   –   r   r   rQ   c                   ó   — e Zd ZdZy)ÚTelegramServerErrorzB
    Exception raised when Telegram server returns 5xx error.
    Nr	   r   r   r   rS   rS   œ   r   r   rS   c                   ó   — e Zd ZdZy)ÚRestartingTelegrama/  
    Exception raised when Telegram server is restarting.

    It seems like this error is not used by Telegram anymore,
    but it's still here for backward compatibility.

    Currently, you should expect that Telegram can raise RetryAfter (with timeout 5 seconds)
     error instead of this one.
    Nr	   r   r   r   rU   rU   ¢   s   „ òr   rU   c                   ó   — e Zd ZdZdZy)ÚTelegramEntityTooLargezP
    Exception raised when you are trying to send a file that is too large.
    z0https://core.telegram.org/bots/api#sending-filesN)r
   r   r   r   r   r   r   r   rW   rW   ®   s   „ ñð =�Cr   rW   c                   ó4   — e Zd ZdZdedededdfd„Zdefd„Zy)	ÚClientDecodeErrorzX
    Exception raised when client can't decode response. (Malformed response, etc.)
    r   ÚoriginalÚdatar   Nc                 ó.   — || _         || _        || _        y r   )r   rZ   r[   )r   r   rZ   r[   s       r   r   zClientDecodeError.__init__»   s   € ØˆŒØ ˆŒØˆ�	r   c           	      ó°   — t        | j                  «      }| j                  › d|j                  › d|j                  › d| j                  › d| j
                  › �	S )Nz
Caused from error: ú.z: z

Content: )r!   rZ   r   r   r
   r[   )r   Úoriginal_types     r   r   zClientDecodeError.__str__À   sZ   € Ü˜TŸ]™]Ó+ˆà�|‰|ˆnð "à×'Ñ'Ð(¨¨-×*@Ñ*@Ð)AÀÀDÇMÁMÀ?ð SØŸ	™	�{ð$ð	
r   )	r
   r   r   r   r#   Ú	Exceptionr   r   r   r   r   r   rY   rY   ¶   s4   „ ñð ð ¨yð Àð Èó ð

˜ô 
r   rY   c                   ó   — e Zd ZdZy)ÚDataNotDictLikeErrorz6
    Exception raised when data is not dict-like.
    Nr	   r   r   r   rb   rb   Ê   r   r   rb   N)Útypingr   Úaiogram.methodsr   Úaiogram.methods.baser   Úaiogram.utils.linkr   r`   r   r   r&   r(   r*   r-   r8   r:   rE   rI   rK   rM   rO   rQ   rS   rU   rW   rY   rb   r   r   r   ú<module>rg      s  ðÝ å *Ý -Ý 'ô�9ô ô2˜<ô 2ô(˜lô ô�\ô ôJÐ!5ô Jô4Ð+ô 4ô(Ð+ô ô'Ð)ô 'ô.5Ð,ô 5ô*Ð)ô ôÐ'ô ôÐ,ô ôÐ 0ô ôÐ-ô ôÐ*ô ô	Ð,ô 	ô=Ð1ô =ô
˜ô 
ô(Ð/õ r   