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                   @   s0   e Zd Zdeeef eeef edddZdS )SetSendAsChatzpyrogram.Client)selfchat_idsend_as_chat_idreturnc                    s6   |  tjjj| |I dH | |I dH dI dH S )a  Set the default "send_as" chat for a chat.

        Use :meth:`~pyrogram.Client.get_send_as_chats` to get all the "send_as" chats available for use.

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

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

            send_as_chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the send_as chat.

        Returns:
            ``bool``: On success, true is returned

        Example:
            .. code-block:: python

                await app.set_send_as_chat(chat_id, send_as_chat_id)
        N)ZpeerZsend_as)Zinvoker   Z	functionsmessagesZSaveDefaultSendAsZresolve_peer)r   r   r    r
   g/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/set_send_as_chat.pyset_send_as_chat   s    zSetSendAsChat.set_send_as_chatN)__name__
__module____qualname__r   intstrboolr   r
   r
   r
   r   r      s
   

r   )typingr   Zpyrogramr   r   r
   r
   r
   r   <module>   s   