
    N[iH                     ~    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e      Zy)	    )BytesIO)	IntLongInt128Int256BoolBytesStringDoubleVector)TLObject)raw)ListOptionalAnyc                       e Zd ZU dZg dZee   ed<   dZdZ	dddddddddd	dd	d
ee
   dee
   dd	dee   dee   dee   dee   dee   dee   dee
   dee
   dd	ddfdZedededd fd       ZdefdZy)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!   r   zraw.base.InputPeerr   r   r   r   r   r   r   r   r   r   r    r!   returnc                    || _         || _        || _        || _        || _        || _        || _        || _        |	| _        |
| _	        || _
        || _        || _        y )Nr   )selfr   r   r   r   r   r   r   r   r   r   r   r    r!   s                 c/var/www/files/kim/lib/python3.12/site-packages/pyrogram/raw/functions/messages/forward_messages.py__init__zForwardMessages.__init__Y   sa    ""$*&#6 $$*    bargsc                 ,   t        j                  |       }|dz  rdnd}|dz  rdnd}|dz  rdnd}|dz  rdnd}|dz  rdnd}|dz  rdnd}t        j                  |       }	t        j                  | t               }
t        j                  | t              }t        j                  |       }|d	z  rt        j                  |       nd }|d
z  rt        j                  |       nd }|dz  rt        j                  |       nd }t	        |	|
|||||||||||      S )N    TF@             @            r   )r   readr   r   r   )r)   r*   flagsr   r   r   r   r   r   r   r   r   r   r   r    r!   s                   r&   r5   zForwardMessages.readh   s8    &)u"f-T5
 % 0e#w/dU&+w&7dU"g.TE
MM!$	]]1c"MM!T*	--"$)V$4SXXa[$
','8d&+w&7(--"TrYX_hn  |F  Vc  q|  Re  r|  IS  cp  zA  B  	Br(   c                    t               }|j                  t        | j                  d             d}|| j                  rdndz  }|| j
                  rdndz  }|| j                  rdndz  }|| j                  rdndz  }|| j                  rdndz  }|| j                  rdndz  }|| j                  d	ndz  }|| j                  d
ndz  }|| j                  dndz  }|j                  t        |             |j                  | j                  j                                |j                  t        | j                  t                     |j                  t        | j                   t"                     |j                  | j$                  j                                | j                  $|j                  t        | j                               | j                  $|j                  t        | j                               | j                  )|j                  | j                  j                                |j'                         S )NFr   r,   r-   r.   r/   r0   r1   r2   r3   r4   )r   writer   IDr   r   r   r   r   r   r   r    r!   r   r   r   r   r   r   getvalue)r%   r*   r)   r6   s       r&   r8   zForwardMessages.write   s   I	DGGU#$T[[&a/T__&!3T//&Q6d..'A5d66'A=doo'14T__8&a?d00<'!Cdll6'A=	E
	$$&'	tww$%	t~~t,-	""$%??&GGC())GGC**+,<<#GGDLL&&()zz|r(   )__name__
__module____qualname____doc__r"   r   str__annotations__r9   QUALNAMEintr   boolr'   staticmethodr   r   r5   bytesr8    r(   r&   r   r   !   s   0d NItCy  N	B3H Y]  |@  bf  FJ  rv  UY  w{  \`  BF %9 tCy UYZ]U^ i}   HP  QU  HV   ks  tx  ky   QY  Z^  Q_   u}  ~B  uC   ai  jn  ao   DL  MQ  DR   go  ps  gt   LT  UX  LY   k   KO  B B B(9 B B0!e !r(   r   N)ior   pyrogram.raw.core.primitivesr   r   r   r   r   r	   r
   r   r   pyrogram.raw.corer   pyrogramr   typingr   r   r   r   rF   r(   r&   <module>rL      s-   &  g g g &  & &Ah Ar(   