o
    -˜ŽjÈ  ã                   @   s*   d dl Z d dl mZmZ G dd„ dƒZdS )é    N)ÚtypesÚrawc                   @   s"   e Zd Zdddeddfdd„ZdS )	ÚGetBusinessConnectionÚselfzpyrogram.ClientÚbusiness_connection_idÚreturnztypes.Messagec                 Ã   sX   �|   tjjj|d�¡I dH }|jD ]}t|tjjƒr)tj	j
| |jd�I dH   S qdS )a°  Use this method to get information about the connection of the bot with a business account.

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

        Parameters:
            business_connection_id (``str``):
                Unique identifier of the business connection

        Returns:
            :obj:`~pyrogram.types.BusinessConnection`: On success, the the connection of the bot with a business account is returned.
        )Úconnection_idN)ÚclientÚbot_connection)Úinvoker   Ú	functionsÚaccountÚGetBotBusinessConnectionÚupdatesÚ
isinstancer   ÚUpdateBotBusinessConnectÚBotBusinessConnectionÚ_parseÚ
connection)r   r   ÚrÚi© r   ún/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/business/get_business_connection.pyÚget_business_connection   s"   €ÿ
ÿ
ýþúÿz-GetBusinessConnection.get_business_connectionN)Ú__name__Ú
__module__Ú__qualname__Ústrr   r   r   r   r   r      s    ÿþýr   )Úpyrogramr   r   r   r   r   r   r   Ú<module>   s   