
    N[i	                     @    d dl mZmZ d dlZd dlmZmZ  G d d      Zy)    )ListUnionN)rawtypesc            
       N    e Zd Zdddeeeeeeef      f   deded   df   fdZy)DeleteContactsselfzpyrogram.Clientuser_idsreturnz
types.UserNc           
        K   t        |t              }|s|g}| j                  t        j                  j
                  j                  |D cg c]  }| j                  |       d{    c}             d{   }|j                  syt        j                  |j                  D cg c]"  }t        j                  j                  | |      $ c}      }|r|S |d   S 7 {c c}w 7 lc c}w w)as  Delete contacts from your Telegram address book.

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

        Parameters:
            user_ids (``int`` | ``str`` | List of ``int`` or ``str``):
                A single user id/username or a list of user identifiers (id or username).

        Returns:
            :obj:`~pyrogram.types.User` | List of :obj:`~pyrogram.types.User` | ``None``: In case *user_ids* was an
            integer or a string, a single User object is returned. In case *user_ids* was a list, a list of User objects
            is returned. In case nothing changed after calling the method (for example, when deleting a non-existent
            contact), None is returned.

        Example:
            .. code-block:: python

                await app.delete_contacts(user_id)
                await app.delete_contacts([user_id1, user_id2, user_id3])
        N)idr   )
isinstancelistinvoker   	functionscontactsr   resolve_peerupdatesr   r   usersUser_parse)r	   r
   is_listirr   s         \/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/contacts/delete_contacts.pydelete_contactszDeleteContacts.delete_contacts   s     0 Xt, zH++MM""118@A1$++A...A 2 
 
 yy

H1EJJ--dA6HIu-U1X- /A
 IsH   AC-
C!#C$C!*C-9C&:.C-('C(C-C!!C-(C-)__name__
__module____qualname__r   intstrr   r        r   r   r      sK    (.(.S$uS#X"778(. 
|T,/5	6(.r#   r   )typingr   r   pyrogramr   r   r   r"   r#   r   <module>r&      s   &   ). ).r#   