
    i
                     D    S SK Jr  S SKrS SKJr  S SKJr   " S S5      rg)    )UnionN)raw)typesc                   4    \ rS rSrSSS\\\4   SS4S jrSrg	)
JoinChat   selfzpyrogram.Clientchat_idreturnz
types.Chatc                   #    U R                   R                  [        U5      5      nU(       Ga  U R                  [        R
                  R                  R                  UR                  S5      S95      I Sh  vN n[        UR                  S   [        R                  R                  5      (       a,  [        R                  R                  XR                  S   5      $ [        UR                  S   [        R                  R                  5      (       a,  [        R                  R                  XR                  S   5      $ gU R                  [        R
                  R                   R#                  U R%                  U5      I Sh  vN S95      I Sh  vN n[        R                  R                  XR                  S   5      $  GNK NA N57f)a  Join a group chat or channel.

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

Parameters:
    chat_id (``int`` | ``str``):
        Unique identifier for the target chat in form of a *t.me/joinchat/* link, a username of the target
        channel/supergroup (in the format @username) or a chat id of a linked chat (channel or supergroup).

Returns:
    :obj:`~pyrogram.types.Chat`: On success, a chat object is returned.

Example:
    .. code-block:: python

        # Join chat via invite link
        await app.join_chat("https://t.me/+AbCdEf0123456789")

        # Join chat via username
        await app.join_chat("pyrogram")

        # Join a linked chat
        await app.join_chat(app.get_chat("pyrogram").linked_chat.id)
   )hashNr   )channel)INVITE_LINK_REmatchstrinvoker   	functionsmessagesImportChatInvitegroup
isinstancechatsr   Chat_parse_chat_chatChannel_parse_channel_chatchannelsJoinChannelresolve_peer)r	   r
   r   chats       M/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/chats/join_chat.py	join_chatJoinChat.join_chat   sM    8 ##))#g,7&&77Q 8  D
 $**Q-88zz224AGGDJJqM399+<+<==zz55dJJqMJJ > &&22"&"3"3G"<< 3  D ::11$

1FF! =s7   A5G	7G8DG	GG	G1G	G	G	 N)	__name__
__module____qualname____firstlineno__r   intr   r#   __static_attributes__r%       r"   r   r      s-    /G/GsCx/G 
/Gr,   r   )typingr   pyrogramr   r   r   r%   r,   r"   <module>r/      s   &    0G 0Gr,   