
    N[i                     8    d dl mZ d dlZd dlmZ  G d d      Zy)    )UnionN)rawc                   8    e Zd Zdddeeef   deeef   defdZy)SetSendAsChatselfzpyrogram.Clientchat_idsend_as_chat_idreturnc                    K   | j                  t        j                  j                  j	                  | j                  |       d{   | j                  |       d{                d{   S 7 -7 7 w)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)peersend_as)invoker   	functionsmessagesSaveDefaultSendAsresolve_peer)r   r   r	   s      Z/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/set_send_as_chat.pyset_send_as_chatzSetSendAsChat.set_send_as_chat   sj     4 [[MM""44,,W55"//@@ 5 
 
 	
5@
s6   AA9A3A9A5A9.A7/A95A97A9N)__name__
__module____qualname__r   intstrboolr        r   r   r      s;    

sCx
 sCx
 
	
r   r   )typingr   pyrogramr   r   r   r   r   <module>r      s   &    
  
r   