o
    .˜Žj¹
  ã                   @   sx   d dl mZ d dlmZmZmZmZmZmZm	Z	m
Z
mZ d dlmZ d dlmZ d dlmZmZmZ G dd„ deƒZdS )	é    )ÚBytesIO)	ÚIntÚLongÚInt128ÚInt256ÚBoolÚBytesÚStringÚDoubleÚVector)ÚTLObject)Úraw)ÚListÚOptionalÚAnyc                   @   sp   e Zd ZU dZg d¢Zee ed< dZdZ	ddde
d	ed
dfdd„Zededed
d fdd„ƒZd
efdd„ZdS )ÚRequestEncryptionap  Telegram API function.

    Details:
        - Layer: ``220``
        - ID: ``F64DAF43``

    Parameters:
        user_id (:obj:`InputUser <pyrogram.raw.base.InputUser>`):
            N/A

        random_id (``int`` ``32-bit``):
            N/A

        g_a (``bytes``):
            N/A

    Returns:
        :obj:`EncryptedChat <pyrogram.raw.base.EncryptedChat>`
    ©Úuser_idÚ	random_idÚg_aÚ	__slots__l   C/›l z$functions.messages.RequestEncryptionr   zraw.base.InputUserr   r   ÚreturnNc                C   s   || _ || _|| _d S )Nr   )Úselfr   r   r   © r   úo/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/raw/functions/messages/request_encryption.pyÚ__init__<   s   
zRequestEncryption.__init__ÚbÚargsc                 G   s,   t  | ¡}t | ¡}t | ¡}t|||d�S )Nr   )r   Úreadr   r   r   )r   r   r   r   r   r   r   r   r   A   s   


zRequestEncryption.readc                 G   sP   t ƒ }| t| jdƒ¡ | | j ¡ ¡ | t| jƒ¡ | t| jƒ¡ | ¡ S )NF)	r   Úwriter   ÚIDr   r   r   r   Úgetvalue)r   r   r   r   r   r   r   M   s   zRequestEncryption.write)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚ__annotations__r    ÚQUALNAMEÚintÚbytesr   Ústaticmethodr   r   r   r   r   r   r   r   r   "   s   
 r   N)Úior   Úpyrogram.raw.core.primitivesr   r   r   r   r   r   r	   r
   r   Úpyrogram.raw.corer   Úpyrogramr   Útypingr   r   r   r   r   r   r   r   Ú<module>   s   ,	