Ë
    S"“j^  ã                   óH   — d dl mZ d dlmZ ddlmZ e G d„ de«      «       Zy)é   )Úname_inner_event)Ú
NewMessageé   )Útypesc                   óL   — e Zd ZdZedd„«       Z G d„ dej                  «      Zy)ÚMessageEditedaq  
    Occurs whenever a message is edited. Just like `NewMessage
    <telethon.events.newmessage.NewMessage>`, you should treat
    this event as a `Message <telethon.tl.custom.message.Message>`.

    .. warning::

        On channels, `Message.out <telethon.tl.custom.message.Message>`
        will be `True` if you sent the message originally, **not if
        you edited it**! This can be dangerous if you run outgoing
        commands on edits.

        Some examples follow:

        * You send a message "A", ``out is True``.
        * You edit "A" to "B", ``out is True``.
        * Someone else edits "B" to "C", ``out is True`` (**be careful!**).
        * Someone sends "X", ``out is False``.
        * Someone edits "X" to "Y", ``out is False``.
        * You edit "Y" to "Z", ``out is False``.

        Since there are useful cases where you need the right ``out``
        value, the library cannot do anything automatically to help you.
        Instead, consider using ``from_users='me'`` (it won't work in
        broadcast channels at all since the sender is the channel and
        not you).

    Example
        .. code-block:: python

            from telethon import events

            @client.on(events.MessageEdited)
            async def handler(event):
                # Log the date of new edits
                print('Message', event.id, 'changed at', event.date)
    Nc                 óŽ   — t        |t        j                  t        j                  f«      r| j	                  |j
                  «      S y )N)Ú
isinstancer   ÚUpdateEditMessageÚUpdateEditChannelMessageÚEventÚmessage)ÚclsÚupdateÚothersÚself_ids       ú^/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/telethon/events/messageedited.pyÚbuildzMessageEdited.build-   s<   € ä�fœu×6Ñ6Ü$×=Ñ=ð?ô @à—9‘9˜VŸ^™^Ó,Ð,ð@ó    c                   ó   — e Zd Zy)úMessageEdited.EventN)Ú__name__Ú
__module__Ú__qualname__© r   r   r   r   3   s   „ Ør   r   )NN)r   r   r   Ú__doc__Úclassmethodr   r   r   r   r   r   r   r      s.   „ ñ$ðJ ò-ó ð-ô
�
× Ñ õ r   r   N)Úcommonr   Ú
newmessager   Útlr   r   r   r   r   ú<module>r!      s)   ðÝ $Ý "Ý ð ô-�Jó -ó ñ-r   