B
    fd                 @   s>   d dl mZ d dlZd dlmZ d dlmZ G dd dZdS )    )ListN)raw)typesc               @   s    e Zd Zded dddZdS )ImportContactszpyrogram.Clientztypes.InputPhoneContact)selfcontactsc                s    |  tjjj|dI dH }|S )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)Zinvoker   Z	functionsr   r   )r   r   Zimported_contacts r   M/tmp/pip-unpacked-wheel-rcokkf2l/pyrogram/methods/contacts/import_contacts.pyimport_contacts   s    zImportContacts.import_contactsN)__name__
__module____qualname__r   r
   r   r   r   r	   r      s   r   )typingr   Zpyrogramr   r   r   r   r   r   r	   <module>   s   