Ë
    :É„jú  ã                   óT   — d dl mZ d dlmZ d dlmZ d dlZd dlmZmZ  G d„ d«      Z	y)é    )Údumps)Úrandint)ÚUnionN)ÚrawÚenumsc                   óN   — e Zd Z	 	 	 	 	 ddddeeef   dddeded	ed
edddefd„Zy)ÚSendChatActionNÚselfzpyrogram.ClientÚchat_idÚactionzenums.ChatActionÚmessage_thread_idÚbusiness_connection_idÚemojiÚemoji_message_idÚemoji_message_interactionzraw.types.DataJSONÚreturnc           
   ƒ   óf  K  — |j                   j                  «       }d|v sd|v r|j                  d¬«      }nÚd|v r |€t        d«      ‚|j                  |¬«      }n¶d	|v r¢|�|€t        d«      ‚|€|| j	                  t
        j                  j                  «       «      ƒ d{  –—† \  }	}
t
        j                  j                  t        d
dt        d
|
j                  «      dœgdœ«      ¬«      }|j                  |||¬«      }n|j                  «       }t
        j                  j                  j                  | j                  |«      ƒ d{  –—† ||¬«      }|r8| j!                  t
        j                  j#                  ||¬«      «      ƒ d{  –—† S | j!                  |«      ƒ d{  –—† S 7 �Œ7 Œa7 Œ"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).
                You can also use chat public link in form of *t.me/<username>* (str).

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

            message_thread_id (```int```):
                Unique identifier for the target message thread (topic) of the forum.
                for forum supergroups only.

            business_connection_id (``str``, *optional*):
                Business connection identifier.
                for business bots only.

            emoji (``str``, *optional*):
                The animated emoji. Only supported for :obj:`~pyrogram.enums.ChatAction.TRIGGER_EMOJI_ANIMATION` and :obj:`~pyrogram.enums.ChatAction.WATCH_EMOJI_ANIMATION`.

            emoji_message_id (``int``, *optional*):
                Message identifier of the message containing the animated emoji. Only supported for :obj:`~pyrogram.enums.ChatAction.TRIGGER_EMOJI_ANIMATION`.

            emoji_message_interaction (:obj:`raw.types.DataJSON`, *optional*):
                Only supported for :obj:`~pyrogram.enums.ChatAction.TRIGGER_EMOJI_ANIMATION`.

        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   )ÚprogressÚwatch_emojiNzInvalid Argument Provided)ÚemoticonÚtrigger_emojié   )ÚtÚi)ÚvÚa)Údata)r   Úmsg_idÚinteraction)Úpeerr   Ú
top_msg_id)Úconnection_idÚquery)ÚnameÚlowerÚvalueÚ
ValueErrorÚ_get_raw_stickersr   ÚtypesÚ&InputStickerSetAnimatedEmojiAnimationsÚDataJSONr   r   ÚcountÚ	functionsÚmessagesÚ	SetTypingÚresolve_peerÚinvokeÚInvokeWithBusinessConnection)r
   r   r   r   r   r   r   r   Úaction_nameÚ_Ústicker_setÚrpcs               úa/var/www/html/GAP/venv/lib/python3.12/site-packages/pyrogram/methods/messages/send_chat_action.pyÚsend_chat_actionzSendChatAction.send_chat_action   sÑ  è ø€ ðB —k‘k×'Ñ'Ó)ˆà�{Ñ" i°;Ñ&>Ø—\‘\¨1�\Ó-‰FØ˜kÑ)Øˆ}Ü Ø/óð ð —\‘\¨5�\Ó1‰FØ Ñ+à�Ø Ð(ä Ø/óð ð )Ð0Ø'+×'=Ñ'=Ü—I‘I×DÑDÓFó(÷ "‘��;ô -0¯I©I×,>Ñ,>Üà!"ð *+Ü)0Ø()Ø(3×(9Ñ(9ó*&ñ!"ð!ñóð -?ó -Ð)ð  —\‘\ØØ'Ø5ð "ó ‰Fð —\‘\“^ˆFÜ�m‰m×$Ñ$×.Ñ.Ø×(Ñ(¨Ó1×1ØØ(ð /ó 
ˆñ
 "ØŸ™Ü—‘×:Ñ:Ø"8Øð ;ó ó÷ ð ð —[‘[ Ó%×%Ð%ðM"ùð6 2øð
øð &úsJ   ‚BF1Â!F(Â"B'F1Å	F+Å
A F1Æ
F-ÆF1Æ#F/Æ$F1Æ+F1Æ-F1Æ/F1)NNNNN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrÚboolr:   © ó    r9   r	   r	      s€   „ ð
 "&Ø&*ØØ $Ø:>ñz&Øðz&à�s˜C�x‘ðz&ð #ðz&ð ð	z&ð
 !$ðz&ð ðz&ð ðz&ð $8ðz&ð 
ôz&rB   r	   )
Újsonr   Úrandomr   Útypingr   Úpyrogramr   r   r	   rA   rB   r9   ú<module>rG      s"   ðõ( Ý Ý ã ß ÷{&ò {&rB   