Ë
    :É„jÙ	  ã                   óH   — d dl mZmZ d dlZd dlmZ d dlmZ  G d„ d«      Zy)é    )ÚUnionÚListN)Úraw)Útypesc                   ó0   — e Zd Zdddeeef   ded   fd„Zy)ÚGetCommonChatsÚselfzpyrogram.ClientÚuser_idÚreturnz
types.Chatc           	   ƒ   óÐ  K  — | j                  |«      ƒ d{  –—† }t        |t        j                  j                  «      rŽ| j                  t        j                  j                  j                  |dd¬«      «      ƒ d{  –—† }t        j                  |j                  D �cg c]"  }t        j                  j                  | |«      ‘Œ$ c}«      S t        d|› d�«      ‚7 ŒÅ7 Œ`c c}w ­w)am  Get the common chats you have with a user.

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

        Parameters:
            user_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).
                You can also use user profile link in form of *t.me/<username>* (str).

        Returns:
            List of :obj:`~pyrogram.types.Chat`: On success, a list of the common chats is returned.

        Raises:
            ValueError: If the user_id doesn't belong to a user.

        Example:
            .. code-block:: python

                common = await app.get_common_chats(user_id)
                print(common)
        Nr   éd   )r
   Úmax_idÚlimitzThe user_id "z" doesn't belong to a user)Úresolve_peerÚ
isinstancer   r   ÚInputPeerUserÚinvokeÚ	functionsÚmessagesr   r   ÚchatsÚChatÚ_parse_chatÚ
ValueError)r	   r
   ÚpeerÚrÚxs        ú^/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/users/get_common_chats.pyÚget_common_chatszGetCommonChats.get_common_chats   s¿   è ø€ ð8 ×&Ñ& wÓ/×/ˆä�dœCŸI™I×3Ñ3Ô4Ø—k‘kÜ—‘×&Ñ&×5Ñ5Ø ØØð 6ó ó÷ ˆAô —:‘:ÈÏÉÖPÀ1œuŸz™z×5Ñ5°d¸AÕ>ÒPÓQÐQä˜=¨¨	Ð1LÐMÓNÐNð 0øðúò Qùs4   ‚C&—C˜A&C&Á>CÁ?!C&Â 'C!ÃC&ÃC&Ã!C&N)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   r   © ó    r   r   r      s2   „ ð)OØð)Oà�s˜C�x‘ð)Oð 
ˆlÑ	ô)Or%   r   )Útypingr   r   Úpyrogramr   r   r   r$   r%   r   ú<module>r(      s   ð÷( ã Ý Ý ÷*Oò *Or%   