Ë
    :É„jÆ  ã                   ó8   — d dl Z d dlZd dlmZmZ  G d„ d«      Zy)é    N)ÚrawÚtypesc                   ó    — e Zd Zdddeddfd„Zy)ÚCheckGiftCodeÚselfzpyrogram.ClientÚlinkÚreturnztypes.CheckedGiftCodec              ƒ   ó  K  — t        j                  d|«      }|r|j                  d«      }nt        |t        «      r|}nt        d«      ‚| j                  t        j                  j                  j                  |¬«      «      ƒ d{  –—† }|j                  D �ci c]  }|j                  |“Œ }}|j                  D �ci c]  }|j                  |“Œ }}t        j                  j!                  | |||«      S 7 Œnc c}w c c}w ­w)a%  Get information about a gift code.

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

        Parameters:
            link (``str``):
                The gift code link.

        Returns:
            :obj:`~pyrogram.types.CheckedGiftCode`: On success, a checked gift code is returned.

        Raises:
            ValueError: In case the gift code link is invalid.

        Example:
            .. code-block:: python

                # get information about a gift code
                app.check_gift_code("t.me/giftcode/abc1234567def")
        zT^(?:https?://)?(?:www\.)?(?:t(?:elegram)?\.(?:org|me|dog)/(?:giftcode/|\+))([\w-]+)$é   zInvalid gift code link)ÚslugN)ÚreÚmatchÚgroupÚ
isinstanceÚstrÚ
ValueErrorÚinvoker   Ú	functionsÚpaymentsr   ÚusersÚidÚchatsr   ÚCheckedGiftCodeÚ_parse)r   r   r   r   ÚrÚir   r   s           ú_/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/payments/check_giftcode.pyÚcheck_gift_codezCheckGiftCode.check_gift_code   sâ   è ø€ ô0 —‘ÐpÐrvÓwˆáØ—;‘;˜q“>‰DÜ˜œcÔ"Ø‰DäÐ5Ó6Ð6à—+‘+Ü�M‰M×"Ñ"×0Ñ0Øð 1ó ó
÷ 
ˆð #$§'¡'Ö*˜Q�—‘�q‘Ð*ˆÐ*Ø"#§'¡'Ö*˜Q�—‘�q‘Ð*ˆÐ*ä×$Ñ$×+Ñ+¨D°!°U¸EÓBÐBð
úò +ùÚ*ùs0   ‚BDÂC6ÂDÂC8Â.DÂ>C=Ã%DÃ8
DN)Ú__name__Ú
__module__Ú__qualname__r   r   © ó    r   r   r      s%   „ ð*CØð*Càð*Cð 
!ô*Cr#   r   )r   Úpyrogramr   r   r   r"   r#   r   ú<module>r%      s   ðó( 
ã ß ÷+Cò +Cr#   