
    N[i                     D    d dl mZ d dlZd dlmZ d dlmZ  G d d      Zy)    )ListN)raw)typesc                   "    e Zd Zddded   fdZy)ImportContactsselfzpyrogram.Clientcontactsztypes.InputPhoneContactc                    K   | j                  t        j                  j                  j	                  |             d{   }|S 7 w)a  Import contacts to your Telegram address book.

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

        Parameters:
            contacts (List of :obj:`~pyrogram.types.InputPhoneContact`):
                The contact list to be added

        Returns:
            :obj:`types.contacts.ImportedContacts`

        Example:
            .. code-block:: python

                from pyrogram.types import InputPhoneContact

                await app.import_contacts([
                    InputPhoneContact("+1-123-456-7890", "Foo"),
                    InputPhoneContact("+1-456-789-0123", "Bar"),
                    InputPhoneContact("+1-789-012-3456", "Baz")])
        )r	   N)invoker   	functionsr	   r   )r   r	   imported_contactss      \/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/contacts/import_contacts.pyimport_contactszImportContacts.import_contacts   sI     2 #'++MM""11! 2 #
 
 ! 
s   =AA AN)__name__
__module____qualname__r   r        r   r   r      s    !!01!r   r   )typingr   pyrogramr   r   r   r   r   r   <module>r      s   &     !  !r   