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

    Details:
        - Layer: ``158``
        - ID: ``B2CBC1C0``

    Parameters:
        peer (:obj:`InputPhoneCall <pyrogram.raw.base.InputPhoneCall>`):
            N/A

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

        reason (:obj:`PhoneCallDiscardReason <pyrogram.raw.base.PhoneCallDiscardReason>`):
            N/A

        connection_id (``int`` ``64-bit``):
            N/A

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

    Returns:
        :obj:`Updates <pyrogram.raw.base.Updates>`
    peerdurationreasonconnection_idvideo	__slots__l   Ae zfunctions.phone.DiscardCallN)r   zraw.base.InputPhoneCallzraw.base.PhoneCallDiscardReason)r   r   r   r   r   returnc                C   s"   || _ || _|| _|| _|| _d S )Nr   r   r   r   r   )selfr   r   r   r   r    r   i/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/raw/functions/phone/discard_call.py__init__A   s
    zDiscardCall.__init__)bargsr   c                 G   sT   t | }|d@ rdnd}t| }t | }t| }t| }t|||||dS )N   TFr   )r   readr   r   r   )r   r   flagsr   r   r   r   r   r   r   r   r!   H   s    




zDiscardCall.read)r   c                 G   s   t  }|t| jd d}|| jr(dndO }|t| || j  |t| j || j  |t| j	 |
 S )NFr   r    )r   writer   IDr   r   r   r   r   r   getvalue)r   r   r   r"   r   r   r   r#   X   s    zDiscardCall.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
   ,	