Ë
    S"“jd?  ã                   ó0   — d dl mZ d dlmZ  G d„ d«      Zy)é   )Útypes)Úget_input_peerc                   ób  — e Zd ZdZd„ Zed„ «       Zed„ «       Zed„ «       Zed„ «       Z	ed„ «       Z
ed„ «       Zed	„ «       Zed
„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Z ed„ «       Z!ed„ «       Z"ed „ «       Z#ed!„ «       Z$ed"„ «       Z%ed#„ «       Z&ed$„ «       Z'ed%„ «       Z(ed&„ «       Z)d'„ Z*d(„ Z+y))*ÚAdminLogEventa�  
    Represents a more friendly interface for admin log events.

    Members:
        original (:tl:`ChannelAdminLogEvent`):
            The original :tl:`ChannelAdminLogEvent`.

        entities (`dict`):
            A dictionary mapping user IDs to :tl:`User`.

            When `old` and `new` are :tl:`ChannelParticipant`, you can
            use this dictionary to map the ``user_id``, ``kicked_by``,
            ``inviter_id`` and ``promoted_by`` IDs to their :tl:`User`.

        user (:tl:`User`):
            The user that caused this action (``entities[original.user_id]``).

        input_user (:tl:`InputPeerUser`):
            Input variant of `user`.
    c                 ó|   — || _         || _        ||j                     | _        t	        | j                  «      | _        y ©N)ÚoriginalÚentitiesÚuser_idÚuserr   Ú
input_user)Úselfr	   r
   s      úa/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/telethon/tl/custom/adminlogevent.pyÚ__init__zAdminLogEvent.__init__   s2   € Ø ˆŒØ ˆŒØ˜X×-Ñ-Ñ.ˆŒ	Ü(¨¯©Ó3ˆ�ó    c                 ó.   — | j                   j                  S )z'
        The ID of this event.
        )r	   Úid©r   s    r   r   zAdminLogEvent.id    s   € ð
 �}‰}×ÑÐr   c                 ó.   — | j                   j                  S )z4
        The date when this event occurred.
        )r	   Údater   s    r   r   zAdminLogEvent.date'   s   € ð
 �}‰}×!Ñ!Ð!r   c                 ó.   — | j                   j                  S )z?
        The ID of the user that triggered this event.
        )r	   r   r   s    r   r   zAdminLogEvent.user_id.   s   € ð
 �}‰}×$Ñ$Ð$r   c                 ó.   — | j                   j                  S )z@
        The original :tl:`ChannelAdminLogEventAction`.
        )r	   Úactionr   s    r   r   zAdminLogEvent.action5   s   € ð
 �}‰}×#Ñ#Ð#r   c                 óŒ  — | j                   j                  }t        |t        j                  t        j
                  t        j                  t        j                  t        j                  f«      r|j                  S t        |t        j                  «      r|j                  S t        |t        j                  «      r|j                  S t        |t        j                  «      r|j                  S t        |t        j                   t        j"                  f«      r|j$                  S t        |t        j&                  t        j(                  t        j*                  f«      r|j,                   S t        |t        j.                  «      r|j0                  S t        |t        j2                  «      r|j4                  S t        |t        j6                  «      r|j8                  S t        |t        j:                  t        j<                  t        j>                  f«      r|j@                  S t        |t        jB                  «      r|jD                  S y)z/
        The old value from the event.
        N)#r	   r   Ú
isinstancer   Ú%ChannelAdminLogEventActionChangeAboutÚ%ChannelAdminLogEventActionChangeTitleÚ(ChannelAdminLogEventActionChangeUsernameÚ(ChannelAdminLogEventActionChangeLocationÚ*ChannelAdminLogEventActionChangeHistoryTTLÚ
prev_valueÚ%ChannelAdminLogEventActionChangePhotoÚ
prev_photoÚ*ChannelAdminLogEventActionChangeStickerSetÚprev_stickersetÚ%ChannelAdminLogEventActionEditMessageÚprev_messageÚ0ChannelAdminLogEventActionParticipantToggleAdminÚ.ChannelAdminLogEventActionParticipantToggleBanÚprev_participantÚ'ChannelAdminLogEventActionToggleInvitesÚ0ChannelAdminLogEventActionTogglePreHistoryHiddenÚ*ChannelAdminLogEventActionToggleSignaturesÚ	new_valueÚ'ChannelAdminLogEventActionDeleteMessageÚmessageÚ-ChannelAdminLogEventActionDefaultBannedRightsÚprev_banned_rightsÚ*ChannelAdminLogEventActionDiscardGroupCallÚcallÚ.ChannelAdminLogEventActionExportedInviteDeleteÚ.ChannelAdminLogEventActionExportedInviteRevokeÚ1ChannelAdminLogEventActionParticipantJoinByInviteÚinviteÚ,ChannelAdminLogEventActionExportedInviteEditÚprev_invite©r   Úoris     r   ÚoldzAdminLogEvent.old<   sº  € ð
 �m‰m×"Ñ"ˆÜ�cÜ×;Ñ;Ü×;Ñ;Ü×>Ñ>Ü×>Ñ>Ü×@Ñ@ð
ô ð —>‘>Ð!Ü˜œU×HÑHÔIØ—>‘>Ð!Ü˜œU×MÑMÔNØ×&Ñ&Ð&Ü˜œU×HÑHÔIØ×#Ñ#Ð#Ü˜Ü×FÑFÜ×DÑDð
ô ð ×'Ñ'Ð'Ü˜Ü×=Ñ=Ü×FÑFÜ×@Ñ@ð
ô ð
 —}‘}Ð$Ð$Ü˜œU×JÑJÔKØ—;‘;ÐÜ˜œU×PÑPÔQØ×)Ñ)Ð)Ü˜œU×MÑMÔNØ—8‘8ˆOÜ˜Ü×@Ñ@Ü×@Ñ@Ü×CÑCð
ô ð
 —:‘:ÐÜ˜œU×OÑOÔPØ—?‘?Ð"ð Qr   c                 óô  — | j                   j                  }t        |t        j                  t        j
                  t        j                  t        j                  t        j                  t        j                  t        j                  t        j                  f«      r|j                  S t        |t        j                  «      r|j                  S t        |t        j                  «      r|j                   S t        |t        j"                  «      r|j$                  S t        |t        j&                  t        j(                  f«      r|j*                  S t        |t        j,                  t        j.                  f«      r|j0                  S t        |t        j2                  «      r|j4                  S t        |t        j6                  «      r|j8                  S t        |t        j:                  «      r|j<                  S t        |t        j>                  t        j@                  f«      r|j0                  S t        |t        jB                  «      r|jD                  S t        |t        jF                  «      r|jH                  S y)z5
        The new value present in the event.
        N)%r	   r   r   r   r   r   r   r+   r,   r-   r   r    r.   r"   Ú	new_photor$   Únew_stickersetr&   Únew_messager(   r)   Únew_participantÚ+ChannelAdminLogEventActionParticipantInviteÚ+ChannelAdminLogEventActionParticipantVolumeÚparticipantr1   Únew_banned_rightsÚ"ChannelAdminLogEventActionStopPollr0   Ú(ChannelAdminLogEventActionStartGroupCallr4   Ú)ChannelAdminLogEventActionParticipantMuteÚ+ChannelAdminLogEventActionParticipantUnmuteÚ0ChannelAdminLogEventActionToggleGroupCallSettingÚ
join_mutedr9   Ú
new_inviter;   s     r   ÚnewzAdminLogEvent.newj   sØ  € ð
 �m‰m×"Ñ"ˆÜ�cÜ×;Ñ;Ü×;Ñ;Ü×>Ñ>Ü×=Ñ=Ü×FÑFÜ×@Ñ@Ü×>Ñ>Ü×@Ñ@ð	
ô 	ð —=‘=Ð Ü˜œU×HÑHÔIØ—=‘=Ð Ü˜œU×MÑMÔNØ×%Ñ%Ð%Ü˜œU×HÑHÔIØ—?‘?Ð"Ü˜Ü×FÑFÜ×DÑDð
ô ð ×&Ñ&Ð&Ü˜Ü×=Ñ=Ü×=Ñ=ð
ô ð —?‘?Ð"Ü˜œU×PÑPÔQØ×(Ñ(Ð(Ü˜œU×EÑEÔFØ—;‘;ÐÜ˜œU×KÑKÔLØ—8‘8ˆOÜ˜Ü×?Ñ?Ü×AÑAð
ô ð —?‘?Ð"Ü˜œU×SÑSÔTØ—>‘>Ð!Ü˜œU×OÑOÔPØ—>‘>Ð!ð Qr   c                 ó^   — t        | j                  j                  t        j                  «      S )z
        Whether the channel's about was changed or not.

        If `True`, `old` and `new` will be present as `str`.
        )r   r	   r   r   r   r   s    r   Úchanged_aboutzAdminLogEvent.changed_about›   ó(   € ô ˜$Ÿ-™-×.Ñ.Ü×EÑEóGð 	Gr   c                 ó^   — t        | j                  j                  t        j                  «      S )z
        Whether the channel's title was changed or not.

        If `True`, `old` and `new` will be present as `str`.
        )r   r	   r   r   r   r   s    r   Úchanged_titlezAdminLogEvent.changed_title¥   rQ   r   c                 ó^   — t        | j                  j                  t        j                  «      S )z‚
        Whether the channel's username was changed or not.

        If `True`, `old` and `new` will be present as `str`.
        )r   r	   r   r   r   r   s    r   Úchanged_usernamezAdminLogEvent.changed_username¯   ó(   € ô ˜$Ÿ-™-×.Ñ.Ü×HÑHóJð 	Jr   c                 ó^   — t        | j                  j                  t        j                  «      S )z…
        Whether the channel's photo was changed or not.

        If `True`, `old` and `new` will be present as :tl:`Photo`.
        )r   r	   r   r   r"   r   s    r   Úchanged_photozAdminLogEvent.changed_photo¹   rQ   r   c                 ó^   — t        | j                  j                  t        j                  «      S )z•
        Whether the channel's sticker set was changed or not.

        If `True`, `old` and `new` will be present as :tl:`InputStickerSet`.
        )r   r	   r   r   r$   r   s    r   Úchanged_sticker_setz!AdminLogEvent.changed_sticker_setÃ   ó(   € ô ˜$Ÿ-™-×.Ñ.Ü×JÑJóLð 	Lr   c                 ó^   — t        | j                  j                  t        j                  «      S )zµ
        Whether a message in this channel was edited or not.

        If `True`, `old` and `new` will be present as
        `Message <telethon.tl.custom.message.Message>`.
        )r   r	   r   r   r&   r   s    r   Úchanged_messagezAdminLogEvent.changed_messageÍ   s(   € ô ˜$Ÿ-™-×.Ñ.Ü×EÑEóGð 	Gr   c                 ó^   — t        | j                  j                  t        j                  «      S )z¬
        Whether a message in this channel was deleted or not.

        If `True`, `old` will be present as
        `Message <telethon.tl.custom.message.Message>`.
        )r   r	   r   r   r/   r   s    r   Údeleted_messagezAdminLogEvent.deleted_messageØ   s(   € ô ˜$Ÿ-™-×.Ñ.Ü×GÑGóIð 	Ir   c                 ó^   — t        | j                  j                  t        j                  «      S )z·
        Whether the permissions for an admin in this channel
        changed or not.

        If `True`, `old` and `new` will be present as
        :tl:`ChannelParticipant`.
        )r   r	   r   r   r(   r   s    r   Úchanged_adminzAdminLogEvent.changed_adminã   s)   € ô Ø�M‰M× Ñ Ü×BÑBóDð 	Dr   c                 ó^   — t        | j                  j                  t        j                  «      S )zŸ
        Whether a message in this channel was edited or not.

        If `True`, `old` and `new` will be present as
        :tl:`ChannelParticipant`.
        )r   r	   r   r   r)   r   s    r   Úchanged_restrictionsz"AdminLogEvent.changed_restrictionsð   s)   € ô Ø�M‰M× Ñ Ü×@Ñ@óBð 	Br   c                 ó^   — t        | j                  j                  t        j                  «      S )zˆ
        Whether the invites in the channel were toggled or not.

        If `True`, `old` and `new` will be present as `bool`.
        )r   r	   r   r   r+   r   s    r   Úchanged_inviteszAdminLogEvent.changed_invitesü   s(   € ô ˜$Ÿ-™-×.Ñ.Ü×GÑGóIð 	Ir   c                 ó^   — t        | j                  j                  t        j                  «      S )zŸ
        Whether the location setting of the channel has changed or not.

        If `True`, `old` and `new` will be present as :tl:`ChannelLocation`.
        )r   r	   r   r   r   r   s    r   Úchanged_locationzAdminLogEvent.changed_location  rV   r   c                 ó^   — t        | j                  j                  t        j                  «      S )z]
        Whether `user` joined through the channel's
        public username or not.
        )r   r	   r   r   Ú)ChannelAdminLogEventActionParticipantJoinr   s    r   ÚjoinedzAdminLogEvent.joined  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×IÑIóKð 	Kr   c                 ó^   — t        | j                  j                  t        j                  «      S )z°
        Whether a new user joined through an invite
        link to the channel or not.

        If `True`, `new` will be present as
        :tl:`ChannelParticipant`.
        )r   r	   r   r   rC   r   s    r   Újoined_invitezAdminLogEvent.joined_invite  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×KÑKóMð 	Mr   c                 ó^   — t        | j                  j                  t        j                  «      S )z9
        Whether `user` left the channel or not.
        )r   r	   r   r   Ú*ChannelAdminLogEventActionParticipantLeaver   s    r   ÚleftzAdminLogEvent.left%  s(   € ô
 ˜$Ÿ-™-×.Ñ.Ü×JÑJóLð 	Lr   c                 ó^   — t        | j                  j                  t        j                  «      S )z·
        Whether hiding the previous message history for new members
        in the channel was toggled or not.

        If `True`, `old` and `new` will be present as `bool`.
        )r   r	   r   r   r,   r   s    r   Úchanged_hide_historyz"AdminLogEvent.changed_hide_history-  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×PÑPóRð 	Rr   c                 ó^   — t        | j                  j                  t        j                  «      S )z›
        Whether the message signatures in the channel were toggled
        or not.

        If `True`, `old` and `new` will be present as `bool`.
        )r   r	   r   r   r-   r   s    r   Úchanged_signaturesz AdminLogEvent.changed_signatures8  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×JÑJóLð 	Lr   c                 ó^   — t        | j                  j                  t        j                  «      S )z¯
        Whether a new message in this channel was pinned or not.

        If `True`, `new` will be present as
        `Message <telethon.tl.custom.message.Message>`.
        )r   r	   r   r   Ú&ChannelAdminLogEventActionUpdatePinnedr   s    r   Úchanged_pinzAdminLogEvent.changed_pinC  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×FÑFóHð 	Hr   c                 ó^   — t        | j                  j                  t        j                  «      S )zŸ
        Whether the default banned rights were changed or not.

        If `True`, `old` and `new` will
        be present as :tl:`ChatBannedRights`.
        )r   r	   r   r   r1   r   s    r   Úchanged_default_banned_rightsz+AdminLogEvent.changed_default_banned_rightsN  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×MÑMóOð 	Or   c                 ó^   — t        | j                  j                  t        j                  «      S )z™
        Whether a poll was stopped or not.

        If `True`, `new` will be present as
        `Message <telethon.tl.custom.message.Message>`.
        )r   r	   r   r   rG   r   s    r   Ústopped_pollzAdminLogEvent.stopped_pollY  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×BÑBóDð 	Dr   c                 ó^   — t        | j                  j                  t        j                  «      S )z}
        Whether a group call was started or not.

        If `True`, `new` will be present as :tl:`InputGroupCall`.
        )r   r	   r   r   rH   r   s    r   Ústarted_group_callz AdminLogEvent.started_group_calld  rV   r   c                 ó^   — t        | j                  j                  t        j                  «      S )z}
        Whether a group call was started or not.

        If `True`, `old` will be present as :tl:`InputGroupCall`.
        )r   r	   r   r   r3   r   s    r   Údiscarded_group_callz"AdminLogEvent.discarded_group_calln  r[   r   c                 ó^   — t        | j                  j                  t        j                  «      S )zœ
        Whether a participant was muted in the ongoing group call or not.

        If `True`, `new` will be present as :tl:`GroupCallParticipant`.
        )r   r	   r   r   rI   r   s    r   Ú
user_mutedzAdminLogEvent.user_mutedx  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×IÑIóKð 	Kr   c                 ó^   — t        | j                  j                  t        j                  «      S )z 
        Whether a participant was unmuted from the ongoing group call or not.

        If `True`, `new` will be present as :tl:`GroupCallParticipant`.
        )r   r	   r   r   rJ   r   s    r   Úuser_unmuttedzAdminLogEvent.user_unmutted‚  ó(   € ô ˜$Ÿ-™-×.Ñ.Ü×KÑKóMð 	Mr   c                 ó^   — t        | j                  j                  t        j                  «      S )z�
        Whether the group call settings were changed or not.

        If `True`, `new` will be `True` if new users are muted on join.
        )r   r	   r   r   rK   r   s    r   Úchanged_call_settingsz#AdminLogEvent.changed_call_settingsŒ  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×PÑPóRð 	Rr   c                 ó^   — t        | j                  j                  t        j                  «      S )a;  
        Whether the Time To Live of the message history has changed.

        Messages sent after this change will have a ``ttl_period`` in seconds
        indicating how long they should live for before being auto-deleted.

        If `True`, `old` will be the old TTL, and `new` the new TTL, in seconds.
        )r   r	   r   r   r    r   s    r   Úchanged_history_ttlz!AdminLogEvent.changed_history_ttl–  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×JÑJóLð 	Lr   c                 ó^   — t        | j                  j                  t        j                  «      S )zŒ
        Whether the exported chat invite has been deleted.

        If `True`, `old` will be the deleted :tl:`ExportedChatInvite`.
        )r   r	   r   r   r5   r   s    r   Údeleted_exported_invitez%AdminLogEvent.deleted_exported_invite£  ó(   € ô ˜$Ÿ-™-×.Ñ.Ü×NÑNóPð 	Pr   c                 ó^   — t        | j                  j                  t        j                  «      S )z¯
        Whether the exported chat invite has been edited.

        If `True`, `old` and `new` will be the old and new
        :tl:`ExportedChatInvite`, respectively.
        )r   r	   r   r   r9   r   s    r   Úedited_exported_invitez$AdminLogEvent.edited_exported_invite­  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×LÑLóNð 	Nr   c                 ó^   — t        | j                  j                  t        j                  «      S )zŒ
        Whether the exported chat invite has been revoked.

        If `True`, `old` will be the revoked :tl:`ExportedChatInvite`.
        )r   r	   r   r   r6   r   s    r   Úrevoked_exported_invitez%AdminLogEvent.revoked_exported_invite¸  rŠ   r   c                 ó^   — t        | j                  j                  t        j                  «      S )zº
        Whether a new participant has joined with the use of an invite link.

        If `True`, `old` will be pre-existing (old) :tl:`ExportedChatInvite`
        used to join.
        )r   r	   r   r   r7   r   s    r   Újoined_by_invitezAdminLogEvent.joined_by_inviteÂ  s(   € ô ˜$Ÿ-™-×.Ñ.Ü×QÑQóSð 	Sr   c                 ó^   — t        | j                  j                  t        j                  «      S )z–
        Whether a participant's volume in a call has been changed.

        If `True`, `new` will be the updated :tl:`GroupCallParticipant`.
        )r   r	   r   r   rD   r   s    r   Úchanged_user_volumez!AdminLogEvent.changed_user_volumeÍ  rƒ   r   c                 ó,   — t        | j                  «      S r   )Ústrr	   r   s    r   Ú__str__zAdminLogEvent.__str__×  s   € Ü�4—=‘=Ó!Ð!r   c                 ó6   — | j                   j                  «       S r   )r	   Ú	stringifyr   s    r   r—   zAdminLogEvent.stringifyÚ  s   € Ø�}‰}×&Ñ&Ó(Ð(r   N),Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   r   r   r   r=   rN   rP   rS   rU   rX   rZ   r]   r_   ra   rc   re   rg   rj   rl   ro   rq   rs   rv   rx   rz   r|   r~   r€   r‚   r…   r‡   r‰   rŒ   rŽ   r�   r’   r•   r—   © r   r   r   r      s$  „ ñò(4ð ñ ó ð ð ñ"ó ð"ð ñ%ó ð%ð ñ$ó ð$ð ñ+#ó ð+#ðZ ñ."ó ð."ð` ñGó ðGð ñGó ðGð ñJó ðJð ñGó ðGð ñLó ðLð ñGó ðGð ñIó ðIð ñ
Dó ð
Dð ñ	Bó ð	Bð ñIó ðIð ñJó ðJð ñKó ðKð ñ	Mó ð	Mð ñLó ðLð ñRó ðRð ñLó ðLð ñHó ðHð ñOó ðOð ñDó ðDð ñJó ðJð ñLó ðLð ñKó ðKð ñMó ðMð ñRó ðRð ñ
Ló ð
Lð ñPó ðPð ñNó ðNð ñPó ðPð ñSó ðSð ñMó ðMò"ó)r   r   N)Útlr   Úutilsr   r   r�   r   r   ú<module>r       s   ðÝ Ý #÷V)ò V)r   