
    N[i                     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eeef   defdZy)GetChatOnlineCountselfzpyrogram.Clientchat_idreturnc                    K   | j                  t        j                  j                  j	                  | j                  |       d{                d{   j                  S 7 7 w)a  Get the number of members that are currently online in a chat.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.

        Returns:
            ``int``: On success, the chat members online count is returned.

        Example:
            .. code-block:: python

                online = await app.get_chat_online_count(chat_id)
                print(online)
        N)peer)invoker   	functionsmessages
GetOnlinesresolve_peeronlines)r   r   s     _/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/chats/get_chat_online_count.pyget_chat_online_countz(GetChatOnlineCount.get_chat_online_count   s\     * kkMM""--,,W55 . 
 
 7		5
s$   AA)A%A)A'A)'A)N)__name__
__module____qualname__r   intstrr        r   r   r      s)    sCx 
r   r   )typingr   pyrogramr   r   r   r   r   <module>r      s   &    r   