Ë
    t½ÕjÔ  ã                   ó\   — d dl m Z  d dlmZmZmZ d dlZd dlmZmZ d dlmZ  G d„ d«      Z	y)é    )Údatetime)ÚUnionÚListÚIterableN)ÚrawÚutils)Útypesc                   óp   — e Zd Z	 	 	 ddddeeef   deeef   deeee   f   deded	ed
ede	d   f   fd„Z
y)ÚForwardMessagesNÚselfzpyrogram.ClientÚchat_idÚfrom_chat_idÚmessage_idsÚdisable_notificationÚschedule_dateÚprotect_contentÚreturnztypes.Messagec              ƒ   óô  K  — t        |t        «       }|rt        |«      n|g}| j                  t        j
                  j                  j                  | j                  |«      ƒ d{  –—† | j                  |«      ƒ d{  –—† ||xs d|D �cg c]  }| j                  «       ‘Œ c}t        j                  |«      |¬«      «      ƒ d{  –—† }	g }
|	j                  D �ci c]  }|j                  |“Œ }}|	j                  D �ci c]  }|j                  |“Œ }}|	j                  D ]�  }t        |t        j                   j"                  t        j                   j$                  t        j                   j&                  f«      sŒ[|
j)                  t         j*                  j-                  | |j.                  ||«      ƒ d{  –—† «       ŒŸ |rt!        j0                  |
«      S |
d   S 7 �Œx7 �Œcc c}w 7 �Œ"c c}w c c}w 7 Œ>­w)aŠ  Forward messages of any kind.

        .. include:: /_includes/usable-by/users-bots.rst

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                For your personal cloud (Saved Messages) you can simply use "me" or "self".
                For a contact that exists in your Telegram address book you can use his phone number (str).

            from_chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the source chat where the original message was sent.
                For your personal cloud (Saved Messages) you can simply use "me" or "self".
                For a contact that exists in your Telegram address book you can use his phone number (str).

            message_ids (``int`` | Iterable of ``int``):
                An iterable of message identifiers in the chat specified in *from_chat_id* or a single message id.

            disable_notification (``bool``, *optional*):
                Sends the message silently.
                Users will receive a notification with no sound.

            schedule_date (:py:obj:`~datetime.datetime`, *optional*):
                Date when the message will be automatically sent.

            protect_content (``bool``, *optional*):
                Protects the contents of the sent message from forwarding and saving.

        Returns:
            :obj:`~pyrogram.types.Message` | List of :obj:`~pyrogram.types.Message`: In case *message_ids* was not
            a list, a single message is returned, otherwise a list of messages is returned.

        Example:
            .. code-block:: python

                # Forward a single message
                await app.forward_messages(to_chat, from_chat, 123)

                # Forward multiple messages at once
                await app.forward_messages(to_chat, from_chat, [1, 2, 3])
        N)Úto_peerÚ	from_peerÚidÚsilentÚ	random_idr   Ú
noforwardsr   )Ú
isinstanceÚintÚlistÚinvoker   Ú	functionsÚmessagesr   Úresolve_peerÚrnd_idr   Údatetime_to_timestampÚusersr   ÚchatsÚupdatesr	   ÚUpdateNewMessageÚUpdateNewChannelMessageÚUpdateNewScheduledMessageÚappendÚMessageÚ_parseÚmessager   )r   r   r   r   r   r   r   Úis_iterableÚ_ÚrÚforwarded_messagesÚir$   r%   s                 úd/root/FB SCRAP HARRY/venv/lib/python3.12/site-packages/pyrogram/methods/messages/forward_messages.pyÚforward_messagesz ForwardMessages.forward_messages   s¯  è ø€ ôf % [´#Ó6Ð6ˆÙ+6”d˜;Ô'¸[¸Mˆà—+‘+Ü�M‰M×"Ñ"×2Ñ2Ø"×/Ñ/°Ó8×8Ø $× 1Ñ 1°,Ó ?×?ØØ+Ò3¨tØ2=Ö>¨Q˜4Ÿ;™;�=Ò>Ü#×9Ñ9¸-ÓHØ*ð 3ó ó

÷ 

ˆð  Ðà"#§'¡'Ö*˜Q�—‘�q‘Ð*ˆÐ*Ø"#§'¡'Ö*˜Q�—‘�q‘Ð*ˆÐ*à—‘ò 		ˆAÜ˜!œcŸi™i×8Ñ8Ü!Ÿi™i×?Ñ?Ü!Ÿi™i×AÑAðCõ Dð #×)Ñ)ÜŸ-™-×.Ñ.Ø˜aŸi™iØ˜uó÷ õð			ñ 2=Œu�z‰zÐ,Ó-ÐWÐBTÐUVÑBWÐWð5 9ùØ?ûò ?ð

ûò +ùÚ*ðúss   ‚A$G8Á&GÁ'G8Á>G!Á?G8ÂG$Â#$G8ÃG)ÃG8ÃG,Ã0G8Ä G1ÄA(G8Å=:G8Æ7G6
Æ8'G8Ç!G8Ç$G8Ç,G8)NNN)Ú__name__Ú
__module__Ú__qualname__r   r   Ústrr   Úboolr   r   r4   © ó    r3   r   r      s�   „ ð &*Ø"&Ø $ñRXØðRXà�s˜C�x‘ðRXð ˜C ˜H‘oðRXð ˜3 ¨¡Ð-Ñ.ð	RXð
 #ðRXð  ðRXð ðRXð 
ˆ  _Ñ 5Ð5Ñ	6ôRXr;   r   )
r   Útypingr   r   r   Úpyrogramr   r   r	   r   r:   r;   r3   ú<module>r>      s'   ðõ& ß (Ñ (ã ß Ý ÷SXò SXr;   