Ë
    :É„j­
  ã                   ó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)ÚSetChatTitleÚselfzpyrogram.ClientÚchat_idÚtitleÚreturnc              ƒ   ó  K  — | j                  |«      ƒ d{  –—† }t        |t        j                  j                  «      rM| j                  t        j                  j                  j                  |j                  |¬«      «      ƒ d{  –—†  yt        |t        j                  j                  «      rC| j                  t        j                  j                  j                  ||¬«      «      ƒ d{  –—†  yt        d|› d�«      ‚7 Œë7 Œ}7 Œ­w)aÂ  Change the title of a chat.
        Titles can't be changed for private chats.
        You must be an administrator in the chat for this to work and must have the appropriate admin rights.

        Note:
            In regular groups (non-supergroups), this method will only work if the "All Members Are Admins"
            setting is off.

        .. 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).

            title (``str``):
                New chat title, 1-255 characters.

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

        Raises:
            ValueError: In case a chat id belongs to user.

        Example:
            .. code-block:: python

                await app.set_chat_title(chat_id, "New Title")
        N)r   r	   )Úchannelr	   zThe chat_id "z" belongs to a userT)Úresolve_peerÚ
isinstancer   ÚtypesÚInputPeerChatÚinvokeÚ	functionsÚmessagesÚEditChatTitler   ÚInputPeerChannelÚchannelsÚ	EditTitleÚ
ValueError)r   r   r	   Úpeers       ú\/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/chats/set_chat_title.pyÚset_chat_titlezSetChatTitle.set_chat_title   sî   è ø€ ðD ×&Ñ& wÓ/×/ˆä�dœCŸI™I×3Ñ3Ô4Ø—+‘+Ü—‘×&Ñ&×4Ñ4Ø ŸL™LØð 5ó ó÷ ð ð  ô ˜œcŸi™i×8Ñ8Ô9Ø—+‘+Ü—‘×&Ñ&×0Ñ0Ø Øð 1ó ó÷ ð ð ô ˜}¨W¨IÐ5HÐIÓJÐJð# 0øðøðús5   ‚D	—D˜A/D	ÂDÂA&D	Ã.DÃ/D	ÄD	ÄD	N)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr   © ó    r   r   r      s3   „ ð5Øð5à�s˜C�x‘ð5ð ð5ð 
ô	5r#   r   )Útypingr   Úpyrogramr   r   r"   r#   r   ú<module>r&      s   ðõ( ã Ý ÷6ò 6r#   