o
    .˜Žj3  ã                   @   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g d¢Zee ed< dZdZ	ddœdd	d
e
dedd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 )ÚRequestCalla  Telegram API function.

    Details:
        - Layer: ``220``
        - ID: ``42FF96ED``

    Parameters:
        user_id (:obj:`InputUser <pyrogram.raw.base.InputUser>`):
            N/A

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

        g_a_hash (``bytes``):
            N/A

        protocol (:obj:`PhoneCallProtocol <pyrogram.raw.base.PhoneCallProtocol>`):
            N/A

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

    Returns:
        :obj:`phone.PhoneCall <pyrogram.raw.base.phone.PhoneCall>`
    ©Úuser_idÚ	random_idÚg_a_hashÚprotocolÚvideoÚ	__slots__ií–ÿBzfunctions.phone.RequestCallN)r   r   zraw.base.InputUserr   r   r   zraw.base.PhoneCallProtocolr   Úreturnc                C   s"   || _ || _|| _|| _|| _d S )Nr   )Úselfr   r   r   r   r   © r   úf/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/raw/functions/phone/request_call.pyÚ__init__B   s
   
zRequestCall.__init__ÚbÚargsc                 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!   I   s   




zRequestCall.readc                 G   s„   t ƒ }| t| jdƒ¡ d}|| jrdndO }| t|ƒ¡ | | j ¡ ¡ | t| jƒ¡ | t| jƒ¡ | | j	 ¡ ¡ | 
¡ S )NFr   r    )r   Úwriter   ÚIDr   r   r   r   r   r   Úgetvalue)r   r   r   r"   r   r   r   r#   Y   s   zRequestCall.write)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚ__annotations__r$   ÚQUALNAMEÚintÚbytesr   Úboolr   Ústaticmethodr   r   r!   r#   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   ,	