U
    ;gf                     @   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eeddddZdS )
ResendCodezpyrogram.Clientztypes.SentCode)selfphone_numberphone_code_hashreturnc                    s4   | 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)	stripZinvoker   Z	functionsauthr   r   ZSentCode_parse)r   r   r   r r   a/opt/bot/vods_filmes/script/venv/lib/python3.8/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   )loggingZpyrogramr   r   	getLoggerr   logr   r   r   r   r   <module>   s
   
