o
    -˜Žjü  ã                   @   s>   d dl mZ d dlZd dlmZ d dlmZ G dd„ dƒZdS )é    )ÚUnionN)Úraw)Útypesc                   @   s.   e Zd Zdddeeef deddfdd„Zd	S )
ÚRetractVoteÚselfzpyrogram.ClientÚchat_idÚ
message_idÚreturnz
types.Pollc                 Ã   sL   �|   tjjj|  |¡I dH |g d�¡I dH }tj | |j	d |j
¡I dH S )aP  Retract your vote in a poll.

        .. include:: /_includes/usable-by/users.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).

            message_id (``int``):
                Identifier of the original message with the poll.

        Returns:
            :obj:`~pyrogram.types.Poll`: On success, the poll with the retracted vote is returned.

        Example:
            .. code-block:: python

                await app.retract_vote(chat_id, message_id)
        N)ÚpeerÚmsg_idÚoptionsr   )Úinvoker   Ú	functionsÚmessagesÚSendVoteÚresolve_peerr   ÚPollÚ_parseÚupdatesÚusers)r   r   r   Úr© r   úc/var/www/kodo/Anonymous/send/lib/python3.10/site-packages/pyrogram/methods/messages/retract_vote.pyÚretract_vote   s   €ý
ÿzRetractVote.retract_voteN)Ú__name__Ú
__module__Ú__qualname__r   ÚintÚstrr   r   r   r   r   r      s    ÿ
þýür   )Útypingr   Úpyrogramr   r   r   r   r   r   r   Ú<module>   s
   