
    i-
                     8    S SK Jr  S SKrS SKJr   " S S5      rg)    )UnionN)rawc                   :    \ rS rSr S	SSS\\\4   S\4S jjrSr	g)
	LeaveChat   selfzpyrogram.Clientchat_iddeletec                   #    U R                  U5      I Sh  vN n[        U[        R                  R                  5      (       aU  U R                  [        R                  R                  R                  U R                  U5      I Sh  vN S95      I Sh  vN $ [        U[        R                  R                  5      (       a  U R                  [        R                  R                  R                  UR                  [        R                  R                  5       S95      I Sh  vN nU(       a?  U R                  [        R                  R                  R                  USS95      I Sh  vN   U$ g GNZ N N NT N7f)aq  Leave a group chat or channel.

.. include:: /_includes/usable-by/users-bots.rst

Parameters:
    chat_id (``int`` | ``str``):
        Unique identifier for the target chat or username of the target channel/supergroup
        (in the format @username).

    delete (``bool``, *optional*):
        Deletes the group chat dialog after leaving (for simple group chats, not supergroups).
        Defaults to False.

Example:
    .. code-block:: python

        # Leave chat or channel
        await app.leave_chat(chat_id)

        # Leave basic chat and also delete the dialog
        await app.leave_chat(chat_id, delete=True)
N)channel)r	   user_idr   )peermax_id)resolve_peer
isinstancer   typesInputPeerChannelinvoke	functionschannelsLeaveChannelInputPeerChatmessagesDeleteChatUserr	   InputUserSelfDeleteHistory)r   r	   r
   r   rs        N/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/chats/leave_chat.py
leave_chatLeaveChat.leave_chat   s8    6 &&w//dCII6677&&33"&"3"3G"<< 4   
 cii5566kk&&55 LLII335 6  A kkMM**88!  9    H! 7 0
 =sZ   E<E1A/E<E4E<E6BE<#E8$AE<)E:*E<4E<6E<8E<:E< N)F)
__name__
__module____qualname____firstlineno__r   intstrboolr   __static_attributes__r!       r   r   r      s3     33sCx3 3 3r*   r   )typingr   pyrogramr   r   r!   r*   r   <module>r-      s   &   4 4r*   