Ë
    :É„j  ã                   ó<   — d dl mZmZ d dlZd dlmZ  G d„ d«      Zy)é    )ÚOptionalÚUnionN)Úrawc                   ó4   — e Zd Z	 ddddeeeef      defd„Zy)ÚGetStarsBalanceNÚselfzpyrogram.ClientÚchat_idÚreturnc              ƒ   ó4  K  — |€t         j                  j                  «       }n| j                  |«      ƒ d{  –—† }| j	                  t         j
                  j                  j                  |¬«      «      ƒ d{  –—† }|j                  j                  S 7 Œ[7 Œ­w)a·  Get the current Telegram Stars balance of the current account.

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

        Parameters:
            chat_id (``int`` | ``str``, *optional*):
                Unique identifier (int) or username (str) of the target chat.
                For your personal cloud (Saved Messages) you can simply use "me" or "self".

        Returns:
            ``int``: On success, the current stars balance is returned.

        Example:
            .. code-block:: python

                # Get stars balance
                app.get_stars_balance()

                # Get stars balance of a bot
                app.get_stars_balance(chat_id="pyroforkbot")
        N)Úpeer)
r   ÚtypesÚInputPeerSelfÚresolve_peerÚinvokeÚ	functionsÚpaymentsÚGetStarsStatusÚbalanceÚamount)r   r	   r   Úrs       úb/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/payments/get_stars_balance.pyÚget_stars_balancez!GetStarsBalance.get_stars_balance   s‚   è ø€ ð2 ˆ?Ü—9‘9×*Ñ*Ó,‰Dà×*Ñ*¨7Ó3×3ˆDà—+‘+Ü�M‰M×"Ñ"×1Ñ1Øð 2ó ó
÷ 
ˆð �y‰y×ÑÐð 4øð
ús"   ‚6B¸B¹A BÁ9BÁ:BÂB)N)Ú__name__Ú
__module__Ú__qualname__r   r   ÚintÚstrr   © ó    r   r   r      s3   „ ð .2ñ$ Øð$ à˜%  S ™/Ñ*ð$ ð 
ô$ r   r   )Útypingr   r   Úpyrogramr   r   r   r   r   ú<module>r"      s   ð÷& #ã Ý ÷% ò % r   