U
    ;gE                     @   sP   d dl Z d dlmZ d dlZd dlmZ d dlmZ e eZG dd dZ	dS )    N)List)raw)typesc                   @   s    e Zd Zded dddZdS )GetContactszpyrogram.Clientz
types.User)selfreturnc                    s6     tjjjddI dH }t fdd|jD S )aa  Get contacts from your Telegram address book.

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

        Returns:
            List of :obj:`~pyrogram.types.User`: On success, a list of users is returned.

        Example:
            .. code-block:: python

                contacts = await app.get_contacts()
                print(contacts)
        r   )hashNc                 3   s   | ]}t j |V  qd S )N)r   ZUser_parse).0userr    f/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/contacts/get_contacts.py	<genexpr>/   s     z+GetContacts.get_contacts.<locals>.<genexpr>)Zinvoker   Z	functionscontactsr   r   r   Zusers)r   r   r   r   r   get_contacts   s    zGetContacts.get_contactsN)__name__
__module____qualname__r   r   r   r   r   r   r      s   r   )
loggingtypingr   Zpyrogramr   r   	getLoggerr   logr   r   r   r   r   <module>   s   
