U
    ;g                     @   s2   d dl mZ d dlZd dlmZ G dd dZdS )    )UnionN)rawc                   @   s&   e Zd Zdeeef edddZdS )GetChatOnlineCountzpyrogram.Client)selfchat_idreturnc                    s*   |  tjjj| |I dH dI dH jS )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)Zpeer)Zinvoker   Z	functionsmessagesZ
GetOnlinesZresolve_peerZonlines)r   r    r	   l/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/chats/get_chat_online_count.pyget_chat_online_count   s
    z(GetChatOnlineCount.get_chat_online_countN)__name__
__module____qualname__r   intstrr   r	   r	   r	   r
   r      s   
r   )typingr   Zpyrogramr   r   r	   r	   r	   r
   <module>   s   