
    N[i	                     8    d dl mZ d dlZd dlmZ  G d d      Zy)    )UnionN)rawc                   *    e Zd Zdddeeef   defdZy)GetChatPhotosCountselfzpyrogram.Clientchat_idreturnc                   K   | j                  |       d{   }t        |t        j                  j                        rn| j                  t        j                  j                  j                  |t        j                  j                         g             d{   }|d   j                  S | j                  t        j                  j                  j                  |ddd             d{   }t        |t        j                  j                  j                        rt        |j                        S |j                  S 7 *7 7 Xw)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)peerfiltersr      )user_idoffsetmax_idlimit)resolve_peer
isinstancer   typesInputPeerChannelinvoke	functionsmessagesGetSearchCountersInputMessagesFilterChatPhotoscountphotosGetUserPhotosPhotoslen)r   r   peer_idrs       _/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/users/get_chat_photos_count.pyget_chat_photos_countz(GetChatPhotosCount.get_chat_photos_count   s    0 ))'22gsyy99:kk&&88  YYDDFG 9  A Q4::kk$$22#	 3  A !SYY--445188}$ww1 3s6   EEBEEAE-E.AEEEN)__name__
__module____qualname__r   intstrr#        r"   r   r      s)    00sCx0 
0r*   r   )typingr   pyrogramr   r   r)   r*   r"   <module>r-      s   &   1 1r*   