o
    -˜Žj  ã                   @   s2   d dl mZ d dlZd dlmZ G dd„ dƒZdS )é    )ÚUnionN)Úrawc                   @   s.   e Zd Zdddeeef dedefdd„ZdS )	ÚRefundStarPaymentÚselfzpyrogram.ClientÚuser_idÚtelegram_payment_charge_idÚreturnc                 Ã   s0   �|   tjjj|  |¡I dH |d�¡I dH  dS )aÕ  Refund the star to the user.

        Parameters:
            user_id (``int`` | ``str``):
                The user id to refund the stars.
            
            telegram_payment_charge_id (``str``):
                The charge id to refund the stars.

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

        Example:
            .. code-block:: python

                await app.refund_star_payment(user_id, telegram_payment_charge_id)
        N)r   Ú	charge_idT)Úinvoker   Ú	functionsÚpaymentsÚRefundStarsChargeÚresolve_peer)r   r   r   © r   úk/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/payments/refund_stars_payment.pyÚrefund_star_payment   s   €þ
ÿz%RefundStarPayment.refund_star_paymentN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   r   r   r   r   r      s    ÿ
þýür   )Útypingr   Úpyrogramr   r   r   r   r   r   Ú<module>   s   