U
    ;g	                     @   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                   @   sn   e Zd ZU dZddgZee ed< dZdZ	dde
ee dd	d
dZeeed dddZedddZdS )DiscardEncryptiona  Telegram API function.

    Details:
        - Layer: ``158``
        - 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   )r   r   returnc                C   s   || _ || _d S )Nr   r   )selfr   r    r   r/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/raw/functions/messages/discard_encryption.py__init__8   s    zDiscardEncryption.__init__)bargsr   c                 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.read)r   c                 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    F   s    zDiscardEncryption.write)__name__
__module____qualname____doc__r   r   str__annotations__r!   ZQUALNAMEintr   boolr   staticmethodr   r   r   bytesr    r   r   r   r   r   !   s   
	r   N)ior   Zpyrogram.raw.core.primitivesr   r   r   r   r   r   r	   r
   r   Zpyrogram.raw.corer   Zpyrogramr   typingr   r   r   r   r   r   r   r   <module>   s
   ,	