Ë
    :É„j%  ã                   ó8   — d dl mZ d dlZd dlmZ  G d„ d«      Zy)é    )ÚUnionN)Úrawc                   ó.   — e Zd Z	 ddddeeef   defd„Zy)Ú	LeaveChatÚselfzpyrogram.ClientÚchat_idÚdeletec              ƒ   óT  K  — | j                  |«      ƒ d{  –—† }| j                  s#| j                  j                  |«      ƒ d{  –—†  t	        |t
        j                  j                  «      rX| j                  t
        j                  j                  j                  | j                  |«      ƒ d{  –—† ¬«      «      ƒ d{  –—† S t	        |t
        j                  j                  «      r®| j                  t
        j                  j                  j                  |j                  t
        j                  j!                  «       ¬«      «      ƒ d{  –—† }|rB| j                  t
        j                  j                  j#                  |d¬«      «      ƒ d{  –—†  |S y7 �Œƒ7 �ŒW7 Œî7 Œß7 ŒU7 Œ­w)a?  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).
                You can also use chat public link in form of *t.me/<username>* (str).

            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Úskip_updatesÚstorageÚremove_stateÚ
isinstancer   ÚtypesÚInputPeerChannelÚinvokeÚ	functionsÚchannelsÚLeaveChannelÚInputPeerChatÚmessagesÚDeleteChatUserr   ÚInputUserSelfÚDeleteHistory)r   r   r	   r   Úrs        úX/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/chats/leave_chat.pyÚ
leave_chatzLeaveChat.leave_chat   s\  è ø€ ð8 ×&Ñ& wÓ/×/ˆØ× Ò Ø—,‘,×+Ñ+¨GÓ4×4Ð4ä�dœCŸI™I×6Ñ6Ô7ØŸ™Ü—‘×&Ñ&×3Ñ3Ø"&×"3Ñ"3°GÓ"<×<ð 4ó ó÷ ð ô
 ˜œcŸi™i×5Ñ5Ô6Ø—k‘kÜ—‘×&Ñ&×5Ñ5Ø ŸL™LÜŸI™I×3Ñ3Ó5ð 6ó ó÷ ˆAñ Ø—k‘kÜ—M‘M×*Ñ*×8Ñ8Ø!Ø ð 9ó ó÷ ð ð ˆHð! 7ð 0ùà4ùð
 =øðøðøðúsl   ‚F(—F˜.F(ÁFÁA*F(Â1F Â2F(ÃF"ÃBF(ÅF$ÅAF(ÆF&ÆF(ÆF(Æ F(Æ"F(Æ$F(Æ&F(N)F)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr!   © ó    r    r   r      s.   „ ð ñ6Øð6à�s˜C�x‘ð6ð ô6r)   r   )Útypingr   Úpyrogramr   r   r(   r)   r    ú<module>r,      s   ðõ( ã Ý ÷7ò 7r)   