
    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)DeleteUserHistoryselfzpyrogram.Clientchat_iduser_idreturnc                    K   | j                  t        j                  j                  j	                  | j                  |       d{   | j                  |       d{                d{   }t        |j                        S 7 B7 ,7 w)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)channelparticipant)invoker   	functionschannelsDeleteParticipantHistoryresolve_peerbool	pts_count)r   r   r	   rs       ]/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/delete_user_history.pydelete_user_historyz%DeleteUserHistory.delete_user_history   sz     ( ++MM"";;"//88"&"3"3G"<< < 
 
 AKK   9<
s6   ABBBB
B.B/B
BBN)__name__
__module____qualname__r   intstrr   r        r   r   r      s;    !!sCx! sCx! 
	!r   r   )typingr   pyrogramr   r   r   r   r   <module>r!      s   &   ! !r   