Ë
    :É„j¤	  ã                   ó8   — d dl mZ d dlZd dlmZ  G d„ d«      Zy)é    )ÚUnionN)Úrawc                   ó*   — e Zd Zdddeeef   defd„Zy)ÚDeleteChatPhotoÚselfzpyrogram.ClientÚchat_idÚreturnc              ƒ   óˆ  K  — | j                  |«      ƒ d{  –—† }t        |t        j                  j                  «      ri| j                  t        j                  j                  j                  |j                  t        j                  j                  «       ¬«      «      ƒ d{  –—†  yt        |t        j                  j                  «      r_| j                  t        j                  j                  j                  |t        j                  j                  «       ¬«      «      ƒ d{  –—†  yt        d|› d�«      ‚7 �Œ$7 Œš7 Œ­w)a“  Delete a chat photo.

        You must be an administrator in the chat for this to work and must have the appropriate admin rights.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                You can also use chat public link in form of *t.me/<username>* (str).

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

        Raises:
            ValueError: if a chat_id belongs to user.

        Example:
            .. code-block:: python

                await app.delete_chat_photo(chat_id)
        N)r   Úphoto)Úchannelr   zThe chat_id "z" belongs to a userT)Úresolve_peerÚ
isinstancer   ÚtypesÚInputPeerChatÚinvokeÚ	functionsÚmessagesÚEditChatPhotor   ÚInputChatPhotoEmptyÚInputPeerChannelÚchannelsÚ	EditPhotoÚ
ValueError)r   r   Úpeers      ú_/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/chats/delete_chat_photo.pyÚdelete_chat_photoz!DeleteChatPhoto.delete_chat_photo   s  è ø€ ð4 ×&Ñ& wÓ/×/ˆä�dœCŸI™I×3Ñ3Ô4Ø—+‘+Ü—‘×&Ñ&×4Ñ4Ø ŸL™LÜŸ)™)×7Ñ7Ó9ð 5ó ó÷ ð ð  ô ˜œcŸi™i×8Ñ8Ô9Ø—+‘+Ü—‘×&Ñ&×0Ñ0Ø ÜŸ)™)×7Ñ7Ó9ð 1ó ó÷ ð ð ô ˜}¨W¨IÐ5HÐIÓJÐJð# 0ùðøðús5   ‚E—D;˜BEÂ#D>Â$BEÄ&E Ä'EÄ>EÅ EN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   © ó    r   r   r      s)   „ ð-Øð-à�s˜C�x‘ð-ð 
ô-r$   r   )Útypingr   Úpyrogramr   r   r#   r$   r   ú<module>r'      s   ðõ( ã Ý ÷.ò .r$   