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 )	CreateSupergroup zpyrogram.Clientz
types.Chat)selftitledescriptionreturnc                    s4   |  tjjj||ddI dH }tj| |jd S )ax  Create a new supergroup.

        .. note::

            If you want to create a new basic group, use :meth:`~pyrogram.Client.create_group` instead.

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

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

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

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

        Example:
            .. code-block:: python

                await app.create_supergroup("Supergroup Title", "Supergroup Description")
        T)r   ZaboutZ	megagroupNr   )	Zinvoker   Z	functionsZchannelsZCreateChannelr   ZChatZ_parse_chatZchats)r   r   r   r r   h/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/create_supergroup.pycreate_supergroup   s    
z"CreateSupergroup.create_supergroupN)r   )__name__
__module____qualname__strr   r   r   r   r   r      s    r   )Zpyrogramr   r   r   r   r   r   r   <module>   s   