Ë
    :É„j¨
  ã                   óD   — d dl mZ d dlZd dlmZ d dlmZ  G d„ d«      Zy)é    )ÚUnionN)Úraw)Útypesc                   ó>   — e Zd Z	 	 	 d
dddeeef   dedededefd„Zy	)Ú
AddContactÚselfzpyrogram.ClientÚuser_idÚ
first_nameÚ	last_nameÚphone_numberÚshare_phone_numberc           	   ƒ   ó$  K  — | j                  t        j                  j                  j	                  | j                  |«      ƒ d{  –—† ||||¬«      «      ƒ d{  –—† }t        j                  j                  | |j                  d   «      S 7 ŒF7 Œ3­w)aG  Add an existing Telegram user as contact, even without a phone number.

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

        Parameters:
            user_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target user.
                You can also use user profile link in form of *t.me/<username>* (str).

            first_name (``str``):
                User's first name.

            last_name (``str``, *optional*):
                User's last name.

            phone_number (``str``, *optional*):
                User's phone number.

            share_phone_number (``bool``, *optional*):
                Whether or not to share the phone number with the user.
                Defaults to False.

        Returns:
            :obj:`~pyrogram.types.User`: On success the user is returned.

        Example:
            .. code-block:: python

                # Add contact by id
                await app.add_contact(12345678, "Foo")

                # Add contact by username
                await app.add_contact("username", "Bar")
        N)Úidr
   r   ÚphoneÚadd_phone_privacy_exceptionr   )
Úinvoker   Ú	functionsÚcontactsr   Úresolve_peerr   ÚUserÚ_parseÚusers)r   r	   r
   r   r   r   Úrs          ú\/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/contacts/add_contact.pyÚadd_contactzAddContact.add_contact   s‚   è ø€ ðT —+‘+Ü�M‰M×"Ñ"×-Ñ-Ø×*Ñ*¨7Ó3×3Ø%Ø#Ø"Ø,>ð .ó ó
÷ 
ˆô �z‰z× Ñ   q§w¡w¨q¡zÓ2Ð2ð 4øð
ús$   ‚ABÁBÁBÁBÁ2BÂBN)Ú r   F)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   © ó    r   r   r      sR   „ ð
 ØØ#(ñ43Øð43à�s˜C�x‘ð43ð ð43ð ð	43ð
 ð43ð !ô43r$   r   )Útypingr   Úpyrogramr   r   r   r#   r$   r   ú<module>r'      s   ðõ( ã Ý Ý ÷53ò 53r$   