o
    -˜Žj»  ã                   @   s>   d dl Z d dl mZ d dl mZ d dlmZ G dd„ dƒZdS )é    N)Úraw)Útypes)ÚUnionc                   @   sL   e Zd Z						ddddeeef ded	ed
edededdfdd„ZdS )ÚGetStarsTransactionsÚmer   Ú NÚselfzpyrogram.ClientÚchat_idÚlimitÚoffsetÚ
is_inboundÚis_outboundÚis_ascendingÚreturnztypes.StarsStatusc           	   
   Ã   sF   �|   |¡I dH }|  tjjj||||||d�¡I dH }tj | |¡S )a6  Get stars transactions.

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

        Parameters:
            chat_id (``int`` | ``str``, *optional*):
                Unique identifier (int) or username (str) of the target user.
                You can also use chat public link in form of *t.me/<username>* (str).
                default to self.
                only for bots.

            limit (``int``, *optional*):
                Limits the number of transactions to be retrieved.

            offset (``str``, *optional*):
                Offset the list of transactions to be retrieved.

            is_inbound (``bool``, *optional*):
                True, if only inbound transactions should be retrieved.

            is_outbound (``bool``, *optional*):
                True, if only outbound transactions should be retrieved.

            is_ascending (``bool``, *optional*):
                True, if transactions should be returned in ascending order.

        Example:
            .. code-block:: python

                # get all transactions
                app.get_stars_transactions()

                # get all inbound transactions
                app.get_stars_transactions(is_inbound=True)

                # get all outbound transactions
                app.get_stars_transactions(is_outbound=True)

                # get all transactions in ascending order
                app.get_stars_transactions(is_ascending=True)

        Returns:
            :obj:`~pyrogram.types.StarsStatus`: On success, a :obj:`~pyrogram.types.StarsStatus` object is returned.
        N)Úpeerr
   r   ÚinboundÚoutboundÚ	ascending)	Úresolve_peerÚinvoker   Ú	functionsÚpaymentsr   r   ÚStarsStatusÚ_parse)	r   r	   r
   r   r   r   r   r   Úr© r   úm/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/payments/get_stars_transactions.pyÚget_stars_transactions   s   €5ú
ÿ
z+GetStarsTransactions.get_stars_transactions)r   r   r   NNN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   r   r   r   r   r      s0    ùÿ
þýüûúùør   )Úpyrogramr   r   Útypingr   r   r   r   r   r   Ú<module>   s
   