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

    Details:
        - Layer: ``158``
        - ID: ``A0AB6CC6``

    Parameters:
        channel (:obj:`InputChannel <pyrogram.raw.base.InputChannel>`):
            N/A

        participant (:obj:`InputPeer <pyrogram.raw.base.InputPeer>`):
            N/A

    Returns:
        :obj:`channels.ChannelParticipant <pyrogram.raw.base.channels.ChannelParticipant>`
    channelparticipant	__slots__l   lVA z!functions.channels.GetParticipantzraw.base.InputChannelzraw.base.InputPeerN)r   r   returnc            C   s   || _ || _d S )N)r   r   )selfr   r    r   S/tmp/pip-unpacked-wheel-rcokkf2l/pyrogram/raw/functions/channels/get_participant.py__init__8   s    zGetParticipant.__init__)bargsr   c             G   s    t | }t | }t||dS )N)r   r   )r   readr   )r   r   r   r   r   r   r   r   <   s    

zGetParticipant.read)r   c             G   s@   t  }|t| jd || j  || j  | S )NF)r   writer   IDr   r   getvalue)r   r   r   r   r   r   r   F   s
    zGetParticipant.write)__name__
__module____qualname____doc__r   r   str__annotations__r   ZQUALNAMEr   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
   ,	