Ë
    S"“jP  ã                   óD   — d dl mZmZmZ ddlmZ e G d„ de«      «       Zy)é   )ÚEventBuilderÚEventCommonÚname_inner_eventé   )Útypesc                   ó8   — e Zd ZdZedd„«       Z G d„ de«      Zy)ÚMessageDeleteda»  
    Occurs whenever a message is deleted. Note that this event isn't 100%
    reliable, since Telegram doesn't always notify the clients that a message
    was deleted.

    .. important::

        Telegram **does not** send information about *where* a message
        was deleted if it occurs in private conversations with other users
        or in small group chats, because message IDs are *unique* and you
        can identify the chat with the message ID alone if you saved it
        previously.

        Telethon **does not** save information of where messages occur,
        so it cannot know in which chat a message was deleted (this will
        only work in channels, where the channel ID *is* present).

        This means that the ``chats=`` parameter will not work reliably,
        unless you intend on working with channels and super-groups only.

    Example
        .. code-block:: python

            from telethon import events

            @client.on(events.MessageDeleted)
            async def handler(event):
                # Log all deleted message IDs
                for msg_id in event.deleted_ids:
                    print('Message', msg_id, 'was deleted in', event.chat_id)
    Nc                 ó  — t        |t        j                  «      r| j                  |j                  d ¬«      S t        |t        j
                  «      r:| j                  |j                  t        j                  |j                  «      ¬«      S y )N)Údeleted_idsÚpeer)Ú
isinstancer   ÚUpdateDeleteMessagesÚEventÚmessagesÚUpdateDeleteChannelMessagesÚPeerChannelÚ
channel_id)ÚclsÚupdateÚothersÚself_ids       ú_/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/telethon/events/messagedeleted.pyÚbuildzMessageDeleted.build&   s{   € ä�fœe×8Ñ8Ô9Ø—9‘9Ø"ŸO™OØð ó ð ô ˜¤× AÑ AÔBØ—9‘9Ø"ŸO™OÜ×&Ñ& v×'8Ñ'8Ó9ð ó ð ð Có    c                   ó   ‡ — e Zd Zˆ fd„Zˆ xZS )úMessageDeleted.Eventc                 ób   •— t         ‰| �  ||xs dgd   ¬«       |sd n|d   | _        || _        y )Né    )Ú	chat_peerÚmsg_id)ÚsuperÚ__init__Ú
deleted_idr   )Úselfr   r   Ú	__class__s      €r   r"   zMessageDeleted.Event.__init__4   s?   ø€ Ü‰GÑØ¨Ò(:¸°s¸AÑ'>ð ô ñ +6™d¸;Àq¹>ˆDŒOØ*ˆDÕr   )Ú__name__Ú
__module__Ú__qualname__r"   Ú__classcell__)r%   s   @r   r   r   3   s   ø„ ÷	+ð 	+r   r   )NN)r&   r'   r(   Ú__doc__Úclassmethodr   r   r   © r   r   r	   r	      s'   „ ñð> ò
ó ð
ô+�õ +r   r	   N)Úcommonr   r   r   Útlr   r	   r,   r   r   ú<module>r/      s)   ðß ?Ñ ?Ý ð ô3+�\ó 3+ó ñ3+r   