Ë
    :É„j	  ã                   óT   — d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ  G d„ d«      Zy)é    )ÚListÚUnionN)Úraw)Úutils)ÚFileTypec                   ó0   — e Zd Zdddeeee   f   defd„Zy)ÚDeleteProfilePhotosÚselfzpyrogram.ClientÚ	photo_idsÚreturnc              ƒ   óL  K  — t        |t        «      r|n|g}|D �cg c]0  }t        j                  |t        j
                  «      j                  ‘Œ2 }}t        | j                  t        j                  j                  j                  |¬«      «      ƒ d{  –—† «      S c c}w 7 Œ­w)a  Delete your own profile photos.

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

        Parameters:
            photo_ids (``str`` | List of ``str``):
                A single :obj:`~pyrogram.types.Photo` id as string or multiple ids as list of strings for deleting
                more than one photos at once.

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

        Example:
            .. code-block:: python

                # Get the photos to be deleted
                photos = [p async for p in app.get_chat_photos("me")]

                # Delete one photo
                await app.delete_profile_photos(photos[0].file_id)

                # Delete the rest of the photos
                await app.delete_profile_photos([p.file_id for p in photos[1:]])
        )ÚidN)Ú
isinstanceÚlistr   Úget_input_media_from_file_idr   ÚPHOTOr   ÚboolÚinvoker   Ú	functionsÚphotosÚDeletePhotos)r
   r   ÚiÚinput_photoss       úc/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/users/delete_profile_photos.pyÚdelete_profile_photosz)DeleteProfilePhotos.delete_profile_photos   s�   è ø€ ô8 ",¨I´tÔ!<‘IÀ9À+ˆ	ØZcÖdÐUVœ×:Ñ:¸1¼h¿n¹nÓM×PÓPÐdˆÐdä˜$Ÿ+™+Ü�M‰M× Ñ ×-Ñ-Øð .ó ó
÷ 
ó ð 	ùò eð
ús   ‚B$œ5BÁAB$ÂB"ÂB$N)Ú__name__Ú
__module__Ú__qualname__r   Ústrr   r   r   © ó    r   r	   r	      s.   „ ð#Øð#à˜˜d 3™i˜Ñ(ð#ð 
ô#r!   r	   )	Útypingr   r   Úpyrogramr   r   Úpyrogram.file_idr   r	   r    r!   r   ú<module>r%      s    ð÷( ã Ý Ý Ý %÷$ò $r!   