
    N[i                     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       _/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/users/delete_profile_photos.pydelete_profile_photosz)DeleteProfilePhotos.delete_profile_photos   s     8 ",It!<I9+	ZcdUV::1hnnMPPdd$++MM  -- . 
 
  	 e
s   B$5BAB$B"B$N)__name__
__module____qualname__r   strr   r   r        r   r	   r	      s.    ##d3i(# 
#r!   r	   )	typingr   r   pyrogramr   r   pyrogram.file_idr   r	   r    r!   r   <module>r%      s    &     %$ $r!   