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 )DeleteUserHistoryzpyrogram.Client)selfchat_iduser_idreturnc                    s@   |  tjjj| |I dH | |I dH dI dH }t|jS )a  Delete all messages sent by a certain user in a supergroup.

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

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

            user_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the user whose messages will be deleted.

        Returns:
            ``bool``: True on success, False otherwise.
        N)ZchannelZparticipant)Zinvoker   Z	functionsZchannelsZDeleteParticipantHistoryZresolve_peerboolZ	pts_count)r   r   r   r r   j/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/delete_user_history.pydelete_user_history   s    
	z%DeleteUserHistory.delete_user_historyN)__name__
__module____qualname__r   intstrr	   r   r   r   r   r   r      s
   

r   )typingr   Zpyrogramr   r   r   r   r   r   <module>   s   