
    N[i                     8    d dl Z d dl mZ d dl mZ  G d d      Zy)    N)raw)typesc            	       (    e Zd Z	 d	dddededdfdZy)
CreateChannelselfzpyrogram.Clienttitledescriptionreturnz
types.Chatc                    K   | j                  t        j                  j                  j	                  ||d             d{   }t
        j                  j                  | |j                  d         S 7 1w)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	   rs       X/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/create_channel.pycreate_channelzCreateChannel.create_channel   sg     0 ++MM""00! 1 
 
 zz%%dAGGAJ77
s   ?A5A32A5N) )__name__
__module____qualname__strr        r   r   r      s0      8 8 8  8 
	 8r   r   )pyrogramr   r   r   r   r   r   <module>r      s   $   !8 !8r   