U
    ;g	                     @   s2   d dl mZ d dlZd dlmZ G dd dZdS )    )UnionN)rawc                   @   s&   e Zd Zdeeef edddZdS )GetChatPhotosCountzpyrogram.Client)selfchat_idreturnc                    s   |  |I dH }t|tjjrN| tjjj|tj	 gdI dH }|d j
S | tjjj|ddddI dH }t|tjjjrt|jS |j
S dS )a  Get the total count of photos for a chat.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                For your personal cloud (Saved Messages) you can simply use "me" or "self".
                For a contact that exists in your Telegram address book you can use his phone number (str).

        Returns:
            ``int``: On success, the user profile photos count is returned.

        Example:
            .. code-block:: python

                count = await app.get_chat_photos_count("me")
                print(count)
        N)Zpeerfiltersr      )Zuser_idoffsetZmax_idlimit)Zresolve_peer
isinstancer   typesZInputPeerChannelZinvokeZ	functionsmessagesZGetSearchCountersZInputMessagesFilterChatPhotoscountZphotosZGetUserPhotosZPhotoslen)r   r   Zpeer_idr r   l/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/users/get_chat_photos_count.pyget_chat_photos_count   s(    



	
z(GetChatPhotosCount.get_chat_photos_countN)__name__
__module____qualname__r   intstrr   r   r   r   r   r      s   
r   )typingr   Zpyrogramr   r   r   r   r   r   <module>   s   