o
    -˜Žj  ã                   @   s6   d dl mZ d dlZd dlmZmZ G dd„ dƒZdS )é    )ÚListN)ÚrawÚtypesc                   @   s"   e Zd Zddded fdd„ZdS )ÚGetOwnedBotsÚselfzpyrogram.ClientÚreturnz
types.Userc                 ƒ   s2   �ˆ   tjj ¡ ¡I dH }t ‡ fdd„|D ƒ¡S )a(  Returns the list of bots owned by the current user.

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

        Returns:
            List of :obj:`~pyrogram.types.User`: On success.

        Example:
            .. code-block:: python

                bots = await app.get_owned_bots()
        Nc                    s   g | ]	}t j ˆ |¡‘qS © )r   ÚUserÚ_parse)Ú.0Úb©r   r   úa/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/bots/get_owned_bots.pyÚ
<listcomp>+   s    ÿÿz/GetOwnedBots.get_owned_bots.<locals>.<listcomp>)Úinvoker   Ú	functionsÚbotsÚGetAdminedBotsr   r   )r   r   r   r   r   Úget_owned_bots   s
   €þzGetOwnedBots.get_owned_botsN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r      s    ÿþr   )Útypingr   Úpyrogramr   r   r   r   r   r   r   Ú<module>   s   