U
    ;g                     @   sP   d dl Z d dlZd dlmZ d dlmZ d dlmZ e eZG dd dZ	dS )    N)raw)types)compute_password_checkc                   @   s   e Zd ZdeddddZdS )CheckPasswordzpyrogram.Clientz
types.User)selfpasswordreturnc                    sn   |  tjjjt|  tjj I dH |dI dH }| j	|j
jI dH  | jdI dH  tj| |j
S )a  Check your Two-Step Verification password and log in.

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

        Parameters:
            password (``str``):
                Your Two-Step Verification password.

        Returns:
            :obj:`~pyrogram.types.User`: On success, the authorized user is returned.

        Raises:
            BadRequest: In case the password is invalid.
        N)r   F)Zinvoker   Z	functionsauthr   r   accountZGetPasswordZstorageZuser_iduseridZis_botr   ZUser_parse)r   r   r r   d/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/auth/check_password.pycheck_password   s    
	zCheckPassword.check_passwordN)__name__
__module____qualname__strr   r   r   r   r   r      s   r   )
loggingZpyrogramr   r   Zpyrogram.utilsr   	getLoggerr   logr   r   r   r   r   <module>   s   
