
    i                     P    S SK Jr  S SKrS SKJr  S SKJr  S SKJr   " S S5      rg)    )UnionN)raw)types)utilsc            	       >    \ rS rSr SSSS\\\4   S\SS4S jjrS	r	g
)GetChat   selfzpyrogram.Clientchat_id
force_full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                  R                  5      (       a  [        R                  R                  X5      $ U R                  UR                  /5      I Sh  vN   [        UR                  [        R                  R                  5      (       a  UR                  R                   * n[        UR                  [        R                  R"                  5      (       a*  [$        R&                  " UR                  R                   5      nU R)                  U5      I Sh  vN nU(       GaY  [        U[        R                  R*                  5      (       a?  U R                  [        R
                  R,                  R/                  US95      I Sh  vN nO[        U[        R                  R0                  [        R                  R2                  45      (       a?  U R                  [        R
                  R4                  R7                  US95      I Sh  vN nOHU R                  [        R
                  R                  R9                  UR:                  S95      I Sh  vN n[        R                  R=                  X5      I Sh  vN $ [        U[        R                  R*                  5      (       a@  U R                  [        R
                  R,                  R?                  U/S95      I Sh  vN nO[        U[        R                  R0                  [        R                  R2                  45      (       a@  U R                  [        R
                  R4                  RA                  U/S95      I Sh  vN nOIU R                  [        R
                  R                  RC                  UR:                  /S95      I Sh  vN n[        R                  RE                  U [        U[        R                  R                  RF                  5      (       a  URH                  S   5      $ US   5      $  GN0 GN GN
 GN GN GN GN GNP N N7f)a  Get up to date information about a chat.

Information include current name of the user for one-on-one conversations, current username of a user, group or
channel, etc.

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

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

    force_full (``bool``, *optional*):
        Pass False, if you don't need to fetch full chat information.
        Defaults to True.

Returns:
    :obj:`~pyrogram.types.Chat`: On success, if you've already joined the chat, a chat object is returned,
    otherwise, a chat preview object is returned.

Raises:
    ValueError: In case the chat invite link points to a chat you haven't joined yet.

Example:
    .. code-block:: python

        chat = await app.get_chat("pyrogram")
        print(chat)
   )hashN)channel)id)r   r   )%INVITE_LINK_REmatchstrinvoker   	functionsmessagesCheckChatInvitegroup
isinstancer   
ChatInviteChat_parse_previewfetch_peerschatr   Channelr   get_channel_idresolve_peerInputPeerChannelchannelsGetFullChannelInputPeerUserInputPeerSelfusersGetFullUserGetFullChatr   _parse_fullGetChannelsGetUsersGetChats_parse_chatChatschats)r
   r   r   r   rpeers         L/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/chats/get_chat.pyget_chatGetChat.get_chat   s0    F ##))#g,7kk&&66Q 7  A !SYY1122zz0099""AFF8,,,!&&#))..116699*!&&#))"3"344..qvvyy9&&w//$		 : :;;++cmm&<&<&K&KTX&K&YZZD399#:#:CII<S<S"TUU++cmm&9&9&E&E&E&NOO++cmm&<&<&H&HQUQ]Q]&H&^__//888$		 : :;;++cmm&<&<&H&HTF&H&STTD399#:#:CII<S<S"TUU++cmm&9&9&B&Btf&B&MNN++cmm&<&<&E&E$,,&E&XYY::))(CII,>,>,D,DEE
 KLQ4 I - 0 [O_8 UNYs   A5S7R'8A+S#R*$B?S#R-$A.SR0BSR3ASR6&SR9A'S,R<-BS/R?0A	S9S:A.S*S-S0S3S6S9S<S?SS N)T)
__name__
__module____qualname____firstlineno__r   intr   boolr6   __static_attributes__r8       r5   r   r      sC      MMsCxM M 
	M Mr@   r   )typingr   pyrogramr   r   r   r   r8   r@   r5   <module>rC      s"   &     N Nr@   