Ë
    S"“j{  ã                   óZ   — d Z ddlZddlmZmZmZmZmZmZm	Z	m
Z
mZmZ ddl­ ddl­ d„ Zy)z‹
This module holds all the base and automatically generated errors that the
Telegram API has. See telethon_generator/errors.json for more.
é    Né   )
ÚReadCancelledErrorÚTypeNotFoundErrorÚInvalidChecksumErrorÚInvalidBufferErrorÚAuthKeyNotFoundÚSecurityErrorÚCdnFileTamperedErrorÚAlreadyInConversationErrorÚBadMessageErrorÚ
MultiError)Ú*c                 óÜ  — t         j                  | j                  j                  «       d«      }|r	 ||¬«      S t        D ]_  \  }}t        j                  || j                  «      }|sŒ)|j                  «       rt        |j                  d«      «      nd} |||¬«      c S  t        j                  t        | j                  «      t        «      } ||| j                  | j                  ¬«      S )zî
    Converts a Telegram's RPC Error to a Python error.

    :param rpc_error: the RpcError instance.
    :param request: the request that caused this error.
    :return: the RPCError as a Python exception that represents this error.
    N)Úrequestr   )r   Úcapture)r   ÚmessageÚcode)Úrpc_errors_dictÚgetÚerror_messageÚupperÚrpc_errors_reÚreÚmatchÚgroupsÚintÚgroupÚbase_errorsÚabsÚ
error_codeÚRPCError)Ú	rpc_errorr   ÚclsÚ	msg_regexÚmr   s         úY/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/telethon/errors/__init__.pyÚrpc_message_to_errorr'      sÄ   € ô ×
Ñ
˜i×5Ñ5×;Ñ;Ó=¸tÓ
D€CÙ
Ù˜7Ô#Ð#ä'ò 9‰ˆ	�3Ü�H‰H�Y 	× 7Ñ 7Ó8ˆÚØ)*¯©¬”c˜!Ÿ'™' !›*”o¸ˆGÙ˜w°Ô8Ò8ð	9ô �/‰/œ#˜i×2Ñ2Ó3´XÓ
>€CÙ�w¨	×(?Ñ(?Ø×(Ñ(ô*ð *ó    )Ú__doc__r   Úcommonr   r   r   r   r   r	   r
   r   r   r   ÚrpcbaseerrorsÚrpcerrorlistr'   © r(   r&   ú<module>r.      s+   ðñó 
÷÷ ÷ ô Ü ó*r(   