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

    Details:
        - Layer: ``158``
        - ID: ``29A8962C``

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

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

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

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

    Returns:
        :obj:`Updates <pyrogram.raw.base.Updates>`
    msg_iddelete_messagedelete_historyreport_spam	__slots__i,)z#functions.contacts.BlockFromRepliesN)r   r   r   )r   r   r   r   returnc            C   s   || _ || _|| _|| _d S )N)r   r   r   r   )selfr   r   r   r    r   V/tmp/pip-unpacked-wheel-rcokkf2l/pyrogram/raw/functions/contacts/block_from_replies.py__init__>   s    zBlockFromReplies.__init__)bargsr   c             G   sT   t | }|d@ rdnd}|d@ r&dnd}|d@ r6dnd}t | }t||||dS )N   TF      )r   r   r   r   )r   readr   )r   r   flagsr   r   r   r   r   r   r   r!   D   s    

zBlockFromReplies.read)r   c             G   sx   t  }|t| jd d}|| jr(dndO }|| jr:dndO }|| jrLdndO }|t| |t| j | S )NFr   r   r   r    )	r   writer   IDr   r   r   r   getvalue)r   r   r   r"   r   r   r   r#   P   s    zBlockFromReplies.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
   ,	