Ë
    :É„jÙ  ã                   óL   — d dl mZmZmZ d dlZd dlmZmZmZmZ  G d„ d«      Z	y)é    )ÚOptionalÚUnionÚListN)ÚrawÚtypesÚenumsÚutilsc                   ór   — e Zd Z	 	 	 	 	 ddddeeef   dedee   ded   d	eed
      dee   dee   defd„Z	y)ÚSendGiftNÚselfzpyrogram.ClientÚchat_idÚgift_idÚtextÚ
parse_modezenums.ParseModeÚentitiesztypes.MessageEntityÚhide_my_nameÚpay_for_upgradeÚreturnc           
   ƒ   óZ  K  — | j                  |«      ƒ d{  –—† }t        j                  | |||«      ƒ d{  –—† j                  «       \  }}t        j
                  j                  |||||r!t        j
                  j                  ||¬«      nd¬«      }	| j                  t        j                  j                  j                  |	¬«      «      ƒ d{  –—† }
| j                  t        j                  j                  j                  |
j                  |	¬«      «      ƒ d{  –—†  y7 �Œ7 Œí7 ŒV7 Œ­w)uQ  Send star gift.

        .. include:: /_includes/usable-by/users.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).

            gift_id (``int``):
                Unique identifier of star gift.

            text (``str``, *optional*):
                Text of the message to be sent.

            parse_mode (:obj:`~pyrogram.enums.ParseMode`, *optional*):
                By default, texts are parsed using both Markdown and HTML styles.
                You can combine both syntaxes together.

            entities (List of :obj:`~pyrogram.types.MessageEntity`, *optional*):
                List of special entities that appear in message text, which can be specified instead of *parse_mode*.

            hide_my_name (``bool``, *optional*):
                If True, your name will be hidden from visitors to the gift recipient's profile.
            
            pay_for_upgrade (``bool``, *optional*):
                If True, gift upgrade will be paid from the botâ€™s balance, thereby making the upgrade free for the receiver.
                For bots only.
                Defaults to None.

        Returns:
            ``bool``: On success, True is returned.

        Example:
            .. code-block:: python

                # Send gift
                app.send_gift(chat_id=chat_id, star_gift_id=123)
        N)r   r   )Úpeerr   Ú	hide_nameÚinclude_upgradeÚmessage)Úinvoice)Úform_idr   T)Úresolve_peerr	   Úparse_text_entitiesÚvaluesr   r   ÚInputInvoiceStarGiftÚTextWithEntitiesÚinvokeÚ	functionsÚpaymentsÚGetPaymentFormÚSendStarsFormr   )r   r   r   r   r   r   r   r   r   r   Úforms              úZ/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/payments/send_gift.pyÚ	send_giftzSendGift.send_gift   s  è ø€ ðd ×&Ñ& wÓ/×/ˆä %× 9Ñ 9¸$ÀÀjÐRZÓ [×[×cÑcÓe‰ˆˆhä—)‘)×0Ñ0ØØØ"Ø+ÙPT”C—I‘I×.Ñ.°DÀ8Ð.ÔLÐZ^ð 1ó 
ˆð —[‘[Ü�M‰M×"Ñ"×1Ñ1Øð 2ó ó
÷ 
ˆð �k‰kÜ�M‰M×"Ñ"×0Ñ0ØŸ™Øð 1ó ó
÷ 	
ð 	
ð ð3 0ùà[øð
øð	
úsE   ‚D+—D"˜D+·D%¸BD+ÃD'ÃAD+ÄD)ÄD+Ä%D+Ä'D+Ä)D+)NNNNN)
Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   r   Úboolr(   © ó    r'   r   r      s�   „ ð
 #Ø26Ø:>Ø'+Ø*.ñKØðKà�s˜C�x‘ðKð ðKð �s‰mð	Kð
 Ð.Ñ/ðKð ˜4Ð 5Ñ6Ñ7ðKð ˜t‘nðKð " $™ðKð 
ôKr0   r   )
Útypingr   r   r   Úpyrogramr   r   r   r	   r   r/   r0   r'   ú<module>r3      s"   ð÷* )Ñ (ã ß -Ó -÷Lò Lr0   