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                   @   sv   e Zd ZU dZddgZee ed< dZdZ	ddœde
de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 )ÚDiscardEncryptiona  Telegram API function.

    Details:
        - Layer: ``220``
        - ID: ``F393AEA0``

    Parameters:
        chat_id (``int`` ``32-bit``):
            N/A

        delete_history (``bool``, *optional*):
            N/A

    Returns:
        ``bool``
    Úchat_idÚdelete_historyÚ	__slots__l    .'g z$functions.messages.DiscardEncryptionN)r   Úreturnc                C   s   || _ || _d S )N©r   r   )Úselfr   r   © r   úo/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/raw/functions/messages/discard_encryption.pyÚ__init__9   s   
zDiscardEncryption.__init__ÚbÚargsc                 G   s0   t  | ¡}|d@ rdnd}t  | ¡}t||d�S )Né   TFr   )r   Úreadr   )r   r   Úflagsr   r   r   r   r   r   =   s   

zDiscardEncryption.readc                 G   sT   t ƒ }| t| jdƒ¡ d}|| jrdndO }| t|ƒ¡ | t| jƒ¡ | ¡ S )NFr   r   )r   Úwriter   ÚIDr   r   Úgetvalue)r   r   r   r   r   r   r   r    G   s   zDiscardEncryption.write)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚ__annotations__r!   ÚQUALNAMEÚintr   Úboolr   Ústaticmethodr   r   r   Úbytesr    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   ,	