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fdd„ZdS )ÚDeleteChannelÚselfzpyrogram.ClientÚchat_idÚreturnc                 Ã   s.   �|   tjjj|  |¡I dH d�¡I dH  dS )aÉ  Delete a channel.

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

        Parameters:
            chat_id (``int`` | ``str``):
                The id of the channel to be deleted.
                You can also use chat public link in form of *t.me/<username>* (str).

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

        Example:
            .. code-block:: python

                await app.delete_channel(channel_id)
        N)ÚchannelT)Úinvoker   Ú	functionsÚchannelsr   Úresolve_peer)r   r   © r   úb/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/chats/delete_channel.pyÚdelete_channel   s   €ÿ
ÿzDeleteChannel.delete_channelN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   r   r   r   r   r      s    ÿ
þýr   )Útypingr   Úpyrogramr   r   r   r   r   r   Ú<module>   s   