
    N[i	                     ~    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e      Zy)	    )BytesIO)	IntLongInt128Int256BoolBytesStringDoubleVector)TLObject)raw)ListOptionalAnyc                   |    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
Zededed	d fd       Zd	efdZy)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   returnc                     || _         || _        y )Nr   r   )selfr   r   s      e/var/www/files/kim/lib/python3.12/site-packages/pyrogram/raw/functions/messages/discard_encryption.py__init__zDiscardEncryption.__init__8   s    ,    bargsc                     t        j                  |       }|dz  rdnd}t        j                  |       }t        ||      S )N   TFr   )r   readr   )r   r   flagsr   r   s        r   r"   zDiscardEncryption.read<   s9     !&&!1u((1+ PPr   c                 &   t               }|j                  t        | j                  d             d}|| j                  rdndz  }|j                  t        |             |j                  t        | j
                               |j                         S )NFr   r!   )r   writer   IDr   r   getvalue)r   r   r   r#   s       r   r%   zDiscardEncryption.writeF   sj    I	DGGU#$T00&a7	E
	DLL!"zz|r   )__name__
__module____qualname____doc__r   r   str__annotations__r&   QUALNAMEintr   boolr   staticmethodr   r   r"   bytesr%    r   r   r   r   !   s    " &'78ItCy8	B5HIM -3 - -RV - Q Q Q(; Q Q
e 
r   r   N)ior   pyrogram.raw.core.primitivesr   r   r   r   r   r	   r
   r   r   pyrogram.raw.corer   pyrogramr   typingr   r   r   r   r3   r   r   <module>r9      s+   &  g g g &  & &/ /r   