
    N[i                     <    d dl mZ d dlZd dlmZmZ  G d d      Zy)    )UnionN)rawenumsc                   .    e Zd Zdddeeef   dddefdZy)	SendChatActionselfzpyrogram.Clientchat_idactionzenums.ChatActionreturnc                 N  K   |j                   j                         }d|v sd|v r|j                  d      }n|j                         }| j                  t        j
                  j                  j                  | j                  |       d{   |             d{   S 7 7 w)a>  Tell the other party that something is happening on your side.

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

        Parameters:
            chat_id (``int`` | ``str``):
                Unique identifier (int) or username (str) of the target chat.
                For your personal cloud (Saved Messages) you can simply use "me" or "self".
                For a contact that exists in your Telegram address book you can use his phone number (str).

            action (:obj:`~pyrogram.enums.ChatAction`):
                Type of action to broadcast.

        Returns:
            ``bool``: On success, True is returned.

        Raises:
            ValueError: In case the provided string is not a valid chat action.

        Example:
            .. code-block:: python

                from pyrogram import enums

                # Send "typing" chat action
                await app.send_chat_action(chat_id, enums.ChatAction.TYPING)

                # Send "upload_video" chat action
                await app.send_chat_action(chat_id, enums.ChatAction.UPLOAD_VIDEO)

                # Send "playing" chat action
                await app.send_chat_action(chat_id, enums.ChatAction.PLAYING)

                # Cancel any current chat action
                await app.send_chat_action(chat_id, enums.ChatAction.CANCEL)
        uploadhistoryr   )progressN)peerr
   )	namelowervalueinvoker   	functionsmessages	SetTypingresolve_peer)r   r	   r
   action_names       ]/var/www/files/kim/lib/python3.12/site-packages/pyrogram/methods/messages/send_chat_action.pysend_chat_actionzSendChatAction.send_chat_action   s     T kk''){"i;&>\\1\-F\\^F[[MM"",,,,W55 - 
 
 	
5
s$   BB%
B!B%B#B%#B%N)__name__
__module____qualname__r   intstrboolr        r   r   r      s3    6
6
sCx6
 #6
 
	6
r#   r   )typingr   pyrogramr   r   r   r"   r#   r   <module>r&      s   &   7
 7
r#   