U
    ç;ãgH  ã                   @   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dddd	d
ddddgZee ed< dZdZ	ddddddddddœ	dee
 ee
 dee ee ee ee ee ee ee
 ee
 dddœdd„Zeeed dœdd„ƒZedœdd„ZdS )ÚForwardMessagesa0  Telegram API function.

    Details:
        - Layer: ``158``
        - ID: ``C661BBC4``

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

        id (List of ``int`` ``32-bit``):
            N/A

        random_id (List of ``int`` ``64-bit``):
            N/A

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

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

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

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

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

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

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

        top_msg_id (``int`` ``32-bit``, *optional*):
            N/A

        schedule_date (``int`` ``32-bit``, *optional*):
            N/A

        send_as (:obj:`InputPeer <pyrogram.raw.base.InputPeer>`, *optional*):
            N/A

    Returns:
        :obj:`Updates <pyrogram.raw.base.Updates>`
    Ú	from_peerÚidÚ	random_idÚto_peerÚsilentÚ
backgroundÚwith_my_scoreÚdrop_authorÚdrop_media_captionsÚ
noforwardsÚ
top_msg_idÚschedule_dateÚsend_asÚ	__slots__l   Ä;Ã z"functions.messages.ForwardMessagesN)	r   r   r   r   r   r   r   r   r   zraw.base.InputPeer)r   r   r   r   r   r   r   r   r   r   r   r   r   Úreturnc                C   sR   || _ || _|| _|| _|| _|| _|| _|| _|	| _|
| _	|| _
|| _|| _d S )N©r   r   r   r   r   r   r   r   r   r   r   r   r   )Úselfr   r   r   r   r   r   r   r   r   r   r   r   r   © r#   úp/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/raw/functions/messages/forward_messages.pyÚ__init__Y   s    zForwardMessages.__init__)ÚbÚargsr    c                 G   sú   t  | ¡}|d@ rdnd}|d@ r&dnd}|d@ r6dnd}|d@ rFdnd}|d@ rVdnd}|d@ rfdnd}t | ¡}	t | t ¡}
t | t¡}t | ¡}|d	@ r¨t  | ¡nd }|d
@ r¾t  | ¡nd }|d@ rÔt | ¡nd }t|	|
|||||||||||dS )Né    TFé@   é   é   é   é @  é   é   é    r!   )r   Úreadr   r   r   )r&   r'   Úflagsr   r   r   r   r   r   r   r   r   r   r   r   r   r#   r#   r$   r1   h   s    


zForwardMessages.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 }|| jr^dndO }|| jrpdndO }|| j	r‚dndO }|| j
d k	r˜d	ndO }|| jd k	r®d
ndO }|| jd k	rÄdndO }| t|ƒ¡ | | j ¡ ¡ | t| jtƒ¡ | t| jtƒ¡ | | j ¡ ¡ | j
d k	r8| t| j
ƒ¡ | jd k	rT| t| jƒ¡ | jd k	rp| | j ¡ ¡ | ¡ S )NFr   r(   r)   r*   r+   r,   r-   r.   r/   r0   )r   Úwriter   ÚIDr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Úgetvalue)r"   r'   r&   r2   r#   r#   r$   r3      s0    zForwardMessages.write)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   ÚstrÚ__annotations__r4   ZQUALNAMEÚintr   Úboolr%   Ústaticmethodr   r   r1   Úbytesr3   r#   r#   r#   r$   r   !   s   
2*f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
   ,	