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dddZdS )UnpinAllChatMessageszpyrogram.Client)selfchat_idreturnc                    s,   |  tjjj| |I dH dI dH  dS )a  Use this method to clear the list of pinned messages in a chat.
        If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have
        the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel.

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

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

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

        Example:
            .. code-block:: python

                # Unpin all chat messages
                await app.unpin_all_chat_messages(chat_id)
        N)ZpeerT)Zinvoker   Z	functionsmessagesZUnpinAllMessagesZresolve_peer)r   r    r	   n/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/unpin_all_chat_messages.pyunpin_all_chat_messages   s    
z,UnpinAllChatMessages.unpin_all_chat_messagesN)__name__
__module____qualname__r   intstrboolr   r	   r	   r	   r
   r      s   
r   )typingr   Zpyrogramr   r   r	   r	   r	   r
   <module>   s   