
    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fdZy)UnpinAllChatMessagesselfzpyrogram.Clientchat_idreturnc                    K   | j                  t        j                  j                  j	                  | j                  |       d{                d{    y7 7 w)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)peerT)invoker   	functionsmessagesUnpinAllMessagesresolve_peer)r   r   s     a/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/unpin_all_chat_messages.pyunpin_all_chat_messagesz,UnpinAllChatMessages.unpin_all_chat_messages   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      s)    sCx 
r   r   )typingr   pyrogramr   r   r   r   r   <module>r      s   &    r   