U
    ;g                     @   s6   d dl mZmZ d dlZd dlmZ G dd dZdS )    )UnionListN)rawc                   @   s4   e Zd Zdeeeeeeef  f edddZdS )ArchiveChatszpyrogram.Client)selfchat_idsreturnc                    s`   t |ts|g}g }|D ]&}|tjj| |I dH dd q| tjj	j
|dI dH  dS )a  Archive one or more chats.

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

        Parameters:
            chat_ids (``int`` | ``str`` | List[``int``, ``str``]):
                Unique identifier (int) or username (str) of the target chat.
                You can also pass a list of ids (int) or usernames (str).

        Returns:
            ``bool``: On success, True is returned.

        Example:
            .. code-block:: python

                # Archive chat
                await app.archive_chats(chat_id)

                # Archive multiple chats at once
                await app.archive_chats([chat_id1, chat_id2, chat_id3])
        N   )ZpeerZ	folder_id)folder_peersT)
isinstancelistappendr   typesZInputFolderPeerZresolve_peerZinvokeZ	functionsfoldersZEditPeerFolders)r   r   r
   Zchat r   d/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/archive_chats.pyarchive_chats   s     

zArchiveChats.archive_chatsN)	__name__
__module____qualname__r   intstrr   boolr   r   r   r   r   r      s   r   )typingr   r   Zpyrogramr   r   r   r   r   r   <module>   s   