o
    -˜Žj±  ã                   @   sD   d dl Z d dlZd dlmZ d dlmZ e  e¡ZG dd„ dƒZdS )é    N)Úraw)Útypesc                   @   s&   e Zd Zdddededdfdd„Zd	S )
Ú
ResendCodeÚselfzpyrogram.ClientÚphone_numberÚphone_code_hashÚreturnztypes.SentCodec                 Ã   s6   �|  d¡}|  tjjj||d�¡I dH }tj |¡S )aó  Re-send the confirmation code using a different type.

        The type of the code to be re-sent is specified in the *next_type* attribute of the
        :obj:`~pyrogram.types.SentCode` object returned by :meth:`send_code`.

        .. include:: /_includes/usable-by/users.rst

        Parameters:
            phone_number (``str``):
                Phone number in international format (includes the country prefix).

            phone_code_hash (``str``):
                Confirmation code identifier.

        Returns:
            :obj:`~pyrogram.types.SentCode`: On success, an object containing information on the re-sent confirmation
            code is returned.

        Raises:
            BadRequest: In case the arguments are invalid.
        z +)r   r   N)	ÚstripÚinvoker   Ú	functionsÚauthr   r   ÚSentCodeÚ_parse)r   r   r   Úr© r   ú^/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/auth/resend_code.pyÚresend_code   s   €
þ
ÿzResendCode.resend_codeN)Ú__name__Ú
__module__Ú__qualname__Ústrr   r   r   r   r   r      s    ÿþýür   )ÚloggingÚpyrogramr   r   Ú	getLoggerr   Úlogr   r   r   r   r   Ú<module>   s   
