U
    ;gL                     @   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eeef eddddZdS )RetractVotezpyrogram.Clientz
types.Poll)selfchat_id
message_idreturnc                    s@   |  tjjj| |I dH |g dI dH }tj| |j	d S )a  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).

            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)ZpeerZmsg_idoptionsr   )
Zinvoker   Z	functionsmessagesZSendVoteZresolve_peerr   ZPoll_parseZupdates)r   r   r   r r   f/opt/bot/vods_filmes/script/venv/lib/python3.8/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   Zpyrogramr   r   r   r   r   r   r   <module>   s   