U
    ç;ãgï	  ã                   @   sP   d dl mZmZ d dlZd dlmZ d dlmZ ddlm	Z	 G dd„ de	ƒZ
dS )	é    )ÚListÚCallableN)ÚFilter)ÚMessageé   )ÚHandlerc                       sB   e Zd ZdZd
eedœ‡ fdd„Zdee dœ‡ fdd	„Z	‡  Z
S )ÚDeletedMessagesHandleraø  The deleted messages handler class. Used to handle deleted messages coming from any chat
    (private, group, channel). It is intended to be used with :meth:`~pyrogram.Client.add_handler`

    For a nicer way to register this handler, have a look at the
    :meth:`~pyrogram.Client.on_deleted_messages` decorator.

    Parameters:
        callback (``Callable``):
            Pass a function that will be called when one or more messages have been deleted.
            It takes *(client, messages)* as positional arguments (look at the section below for a detailed description).

        filters (:obj:`Filters`):
            Pass one or more filters to allow only a subset of messages to be passed
            in your callback function.

    Other parameters:
        client (:obj:`~pyrogram.Client`):
            The Client itself, useful when you want to call other API methods inside the message handler.

        messages (List of :obj:`~pyrogram.types.Message`):
            The deleted messages, as list.
    N)ÚcallbackÚfiltersc                    s   t ƒ  ||¡ d S )N)ÚsuperÚ__init__)Úselfr	   r
   ©Ú	__class__© új/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/handlers/deleted_messages_handler.pyr   3   s    zDeletedMessagesHandler.__init__zpyrogram.Client)ÚclientÚmessagesc                 ƒ   s(   |D ]}t ƒ  ||¡I d H r dS qdS )NTF)r   Úcheck)r   r   r   Úmessager   r   r   r   6   s    zDeletedMessagesHandler.check)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   Ú__classcell__r   r   r   r   r      s   r   )Útypingr   r   ZpyrogramZpyrogram.filtersr   Zpyrogram.typesr   Úhandlerr   r   r   r   r   r   Ú<module>   s
   