Ë
    :É„jÚ  ã                   ó<   — d dl mZ d dlZd dlmZmZ  G d„ d«      Zy)é    )ÚUnionN)ÚrawÚutilsc            
       ó<   — e Zd Zdddeeef   deeef   dedef
d„Zy)	ÚTransferChatOwnershipÚselfzpyrogram.ClientÚchat_idÚuser_idÚpasswordÚreturnc              ƒ   ó|  K  — | j                  |«      ƒ d{  –—† }| j                  |«      ƒ d{  –—† }t        |t        j                  j                  «      st        d«      ‚t        |t        j                  j                  «      st        d«      ‚| j                  t        j                  j                  j                  ||t        j                  | j                  t        j                  j                  j                  «       «      ƒ d{  –—† |«      ¬«      «      ƒ d{  –—† }t        |«      S 7 �Œ7 �Œ7 Œ+7 Œ­w)a†  Transfer the owner of a chat or channel to another user.

        .. note:

            Requires owner privileges.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                Unique identifier for the target chat in form of a *t.me/joinchat/* link, identifier (int) or username
                of the target channel/supergroup (in the format @username).

            user_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the new owner.
                For a contact that exists in your Telegram address book you can use his phone number (str).

            password (``str``):
                The 2-step verification password of the current user.

        Returns:
            ``bool``: True on success.

        Raises:
            ValueError: In case of invalid parameters.
            RPCError: In case of a Telegram RPC error.

        Example:
            .. code-block:: python

                await app.transfer_chat_ownership(chat_id, user_id, "password")
        Nz0The chat_id must belong to a channel/supergroup.z"The user_id must belong to a user.)Úchannelr
   r   )Úresolve_peerÚ
isinstancer   ÚtypesÚInputPeerChannelÚ
ValueErrorÚInputPeerUserÚinvokeÚ	functionsÚchannelsÚEditCreatorr   Úcompute_password_checkÚaccountÚGetPasswordÚbool)r   r	   r
   r   Úpeer_channelÚ	peer_userÚrs          úe/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/chats/transfer_chat_ownership.pyÚtransfer_chat_ownershipz-TransferChatOwnership.transfer_chat_ownership   sø   è ø€ ðN "×.Ñ.¨wÓ7×7ˆØ×+Ñ+¨GÓ4×4ˆ	ä˜,¬¯	©	×(BÑ(BÔCÜÐOÓPÐPä˜)¤S§Y¡Y×%<Ñ%<Ô=ÜÐAÓBÐBà—+‘+Ü�M‰M×"Ñ"×.Ñ.Ø$Ø!Ü×5Ñ5ØŸ+™+¤c§m¡m×&;Ñ&;×&GÑ&GÓ&IÓJ×JÈHóð /ó ó
÷ 
ˆô �A‹wˆð' 8ùØ4ùð Køð
úsD   ‚D<—D2˜D<°D5±CD<ÄD8ÄD<Ä"D:Ä#D<Ä5D<Ä8D<Ä:D<N)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   r!   © ó    r    r   r      sE   „ ð:Øð:à�s˜C�x‘ð:ð �s˜C�x‘ð:ð ð	:ð
 
ô:r(   r   )Útypingr   Úpyrogramr   r   r   r'   r(   r    ú<module>r+      s   ðõ& Û ß ÷;ò ;r(   