Ë
    :É„jh	  ã                   ó8   — d dl mZ d dlZd dlmZ  G d„ d«      Zy)é    )ÚUnionN)Úrawc                   ó.   — e Zd Zdddeeef   dedefd„Zy)ÚSetChatDescriptionÚselfzpyrogram.ClientÚchat_idÚdescriptionÚreturnc              ƒ   ód  K  — | j                  |«      ƒ d{  –—† }t        |t        j                  j                  t        j                  j
                  f«      rC| j                  t        j                  j                  j                  ||¬«      «      ƒ d{  –—†  yt        d|› d�«      ‚7 Œ”7 Œ­w)a@  Change the description of a supergroup or a channel.
        You must be an administrator in the chat for this to work and must have the appropriate admin rights.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                You can also use chat public link in form of *t.me/<username>* (str).

            description (``str``):
                New chat description, 0-255 characters.

        Returns:
            ``bool``: True on success.

        Raises:
            ValueError: if a chat_id doesn't belong to a supergroup or a channel.

        Example:
            .. code-block:: python

                await app.set_chat_description(chat_id, "New Description")
        N)ÚpeerÚaboutzThe chat_id "z" belongs to a userT)Úresolve_peerÚ
isinstancer   ÚtypesÚInputPeerChannelÚInputPeerChatÚinvokeÚ	functionsÚmessagesÚEditChatAboutÚ
ValueError)r   r   r	   r   s       úb/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/chats/set_chat_description.pyÚset_chat_descriptionz'SetChatDescription.set_chat_description   sž   è ø€ ð: ×&Ñ& wÓ/×/ˆä�dœSŸY™Y×7Ñ7¼¿¹×9PÑ9PÐQÔRØ—+‘+Ü—‘×&Ñ&×4Ñ4ØØ%ð 5ó ó÷ ð ð ô ˜}¨W¨IÐ5HÐIÓJÐJð 0øðús"   ‚B0—B,˜A?B0ÂB.ÂB0Â.B0N)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   © ó    r   r   r      s3   „ ð)Øð)à�s˜C�x‘ð)ð ð)ð 
ô	)r!   r   )Útypingr   Úpyrogramr   r   r    r!   r   ú<module>r$      s   ðõ( ã Ý ÷*ò *r!   