U
    ;g                     @   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eeddddZdS )	CreateChannel zpyrogram.Clientz
types.Chat)selftitledescriptionreturnc                    s4   |  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   Zabout	broadcastNr   )	Zinvoker   Z	functionsZchannelsr   r   ZChatZ_parse_chatZchats)r   r   r   r r   e/opt/bot/vods_filmes/script/venv/lib/python3.8/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   )Zpyrogramr   r   r   r   r   r   r   <module>   s   