Ë
    :É„j¼  ã                   ó8   — d dl m Z  d dlZd dlmZ  G d„ d«      Zy)é    )ÚtimeN)Úrawc                   ó   — e Zd Zdd„Zy)ÚPingc              ƒ   óô   K  — t        «       }| j                  t        j                  j                  j                  | j                  «       ¬«      «      ƒ d{  –—†  t        t        «       |z
  dz  d«      S 7 Œ­w)aÿ  Measure the round-trip time (RTT) to the Telegram server.

        The ping method sends a request to the Telegram server and measures the time it takes to receive a response.
        This can be useful for monitoring network latency and ensuring a stable connection to the server.

        Returns:
            float: The round-trip time in milliseconds (ms).

        Example:
            .. code-block:: python

                latency = await app.ping()
                print(f"Ping: {latency} ms")
        )Úping_idNg     @�@é   )r   Úinvoker   Ú	functionsÚpingr   Úrnd_idÚround)ÚselfÚ
start_times     úV/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/utilities/ping.pyr   z	Ping.ping   sf   è ø€ ô “Vˆ
Ø�k‰kÜ�M‰M×Ñ×#Ñ#¨D¯K©K«MÐ#Ó:ó
÷ 	
ð 	
ô ”d“f˜zÑ)¨VÑ3°QÓ7Ð7ð	
ús   ‚AA8ÁA6ÁA8N)r   zpyrogram.Client)Ú__name__Ú
__module__Ú__qualname__r   © ó    r   r   r      s   „ ô8r   r   )r   Úpyrogramr   r   r   r   r   ú<module>r      s   ðõ( ã Ý ÷8ò 8r   