
    N[i                     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)SetChatProtectedContentselfzpyrogram.Clientchat_idenabledreturnc                    K   | j                  t        j                  j                  j	                  | j                  |       d{   |             d{    y7 7 w)a  Set the chat protected content setting.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.

            enabled (``bool``):
                Pass True to enable the protected content setting, False to disable.

        Returns:
            ``bool``: On success, True is returned.
        N)peerr	   T)invoker   	functionsmessagesToggleNoForwardsresolve_peer)r   r   r	   s      d/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/set_chat_protected_content.pyset_chat_protected_contentz2SetChatProtectedContent.set_chat_protected_content   s_     ( kkMM""33,,W55 4 
 	
 	
  6	
s$   AA!AA!AA!A!N)__name__
__module____qualname__r   intstrboolr        r   r   r      s3    sCx  
	r   r   )typingr   pyrogramr   r   r   r   r   <module>r      s   &    r   