U
    ;g9	                     @   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deeef eeeedddZdS )	SendReaction Fzpyrogram.Client)selfchat_id
message_idemojibigreturnc                    sF   |  tjjj| |I dH ||r0tjj|dgnd|dI dH  dS )u  Send a reaction to a message.

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

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

            message_id (``int``):
                Identifier of the message.

            emoji (``str``, *optional*):
                Reaction emoji.
                Pass "" as emoji (default) to retract the reaction.
            
            big (``bool``, *optional*):
                Pass True to show a bigger and longer reaction.
                Defaults to False.

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

        Example:
            .. code-block:: python

                # Send a reaction
                await app.send_reaction(chat_id, message_id, "🔥")

                # Retract a reaction
                await app.send_reaction(chat_id, message_id)
        N)Zemoticon)ZpeerZmsg_idZreactionr
   T)Zinvoker   Z	functionsmessagesr   Zresolve_peertypesZReactionEmoji)r   r   r   r	   r
    r   g/opt/bot/vods_filmes/script/venv/lib/python3.8/site-packages/pyrogram/methods/messages/send_reaction.pysend_reaction   s    &
	zSendReaction.send_reactionN)r   F)__name__
__module____qualname__r   intstrboolr   r   r   r   r   r      s     
r   )typingr   Zpyrogramr   r   r   r   r   r   <module>   s   