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deeef eedddZdS )UnpinChatMessager   zpyrogram.Client)selfchat_id
message_idreturnc                    s0   |  tjjj| |I dH |ddI dH  dS )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)ZpeeridZunpin)Zinvoker   Z	functionsmessagesZUpdatePinnedMessageZresolve_peer)r   r   r    r   i/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/unpin_chat_message.pyunpin_chat_message   s    
z#UnpinChatMessage.unpin_chat_messageN)r   )__name__
__module____qualname__r   intstrboolr   r   r   r   r   r      s    
r   )typingr   Zpyrogramr   r   r   r   r   r   <module>   s   