o
    -˜Žjî  ã                   @   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 )ÚCreateSupergroupÚ Úselfzpyrogram.ClientÚtitleÚdescriptionÚreturnz
types.Chatc                 Ã   s6   �|   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   ÚaboutÚ	megagroupNr   )	Úinvoker   Ú	functionsÚchannelsÚCreateChannelr   ÚChatÚ_parse_chatÚchats)r   r   r   Úr© r   úe/var/www/kodo/Anonymous/send/lib/python3.10/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   )Úpyrogramr   r   r   r   r   r   r   Ú<module>   s   