
    N[i[                     8    d dl mZ d dlZd dlmZ  G d d      Zy)    )UnionN)rawc            	       2    e Zd Z	 ddddeeef   dedefdZy)	UnpinChatMessageselfzpyrogram.Clientchat_id
message_idreturnc                    K   | j                  t        j                  j                  j	                  | j                  |       d{   |d             d{    y7 7 w)a;  Unpin a message in a group, channel or your own chat.
        You must be an administrator in the chat for this to work and must have the "can_pin_messages" admin
        right in the supergroup or "can_edit_messages" admin right in the channel.

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

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

            message_id (``int``, *optional*):
                Identifier of a message to unpin.
                If not specified, the most recent pinned message (by sending date) will be unpinned.

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

        Example:
            .. code-block:: python

                await app.unpin_chat_message(chat_id, message_id)
        NT)peeridunpin)invoker   	functionsmessagesUpdatePinnedMessageresolve_peer)r   r   r	   s      \/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/unpin_chat_message.pyunpin_chat_messagez#UnpinChatMessage.unpin_chat_message   sb     6 kkMM""66,,W55 7 
 	
 	
  6	
s$   AA"AA"A A" A"N)r   )__name__
__module____qualname__r   intstrboolr        r   r   r      s8     ##sCx# # 
	#r   r   )typingr   pyrogramr   r   r   r   r   <module>r       s   &   $ $r   