o
    -˜Žjd  ã                   @   s2   d dl Z d dl mZ d dl mZ G dd„ dƒZdS )é    N)Úraw)Útypesc                	   @   s*   e Zd Z	ddddededdfdd	„Zd
S )ÚCreateChannelÚ Úselfzpyrogram.ClientÚtitleÚdescriptionÚreturnz
types.Chatc                 Ã   s6   �|   tjjj||dd�¡I dH }tj | |jd ¡S )aô  Create a new broadcast channel.

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

        Parameters:
            title (``str``):
                The channel title.

            description (``str``, *optional*):
                The channel description.

        Returns:
            :obj:`~pyrogram.types.Chat`: On success, a chat object is returned.

        Example:
            .. code-block:: python

                await app.create_channel("Channel Title", "Channel Description")
        T)r   ÚaboutÚ	broadcastNr   )	Úinvoker   Ú	functionsÚchannelsr   r   ÚChatÚ_parse_chatÚchats)r   r   r   Úr© r   úb/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/chats/create_channel.pyÚcreate_channel   s   €ý
ÿzCreateChannel.create_channelN)r   )Ú__name__Ú
__module__Ú__qualname__Ústrr   r   r   r   r   r      s    ýÿþýür   )Úpyrogramr   r   r   r   r   r   r   Ú<module>   s   