U
    ;g                     @   s2   d dl mZ d dlZd dlmZ G dd dZdS )    )UnionN)rawc                   @   s(   e Zd Zdeeef eedddZdS )SetChatProtectedContentzpyrogram.Client)selfchat_idenabledreturnc                    s.   |  tjjj| |I dH |dI dH  dS )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)Zpeerr   T)Zinvoker   Z	functionsmessagesZToggleNoForwardsZresolve_peer)r   r   r    r
   q/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/set_chat_protected_content.pyset_chat_protected_content   s    
z2SetChatProtectedContent.set_chat_protected_contentN)__name__
__module____qualname__r   intstrboolr   r
   r
   r
   r   r      s
   
r   )typingr   Zpyrogramr   r   r
   r
   r
   r   <module>   s   