
    i	                     H    S SK JrJr  S SKrS SKJr  S SKJr   " S S5      rg)    )UnionListN)raw)typesc                   L    \ rS rSrSSS\\\4   S\S\\\\   4   SS4
S	 jrS
r	g)VotePoll   selfzpyrogram.Clientchat_id
message_idoptionsreturnz
types.Pollc                   #    U R                  XS9I Sh  vN R                  n[        U[        5      (       d  U/OUnU R	                  [
        R                  R                  R                  U R                  U5      I Sh  vN UU Vs/ s H  oTR                  U   R                  PM     snS95      I Sh  vN n[        R                  R                  XR                  S   5      $  N Nis  snf  N97f)a  Vote 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.

    options (``int`` | List of ``int``):
        Index or list of indexes (for multiple answers) of the poll option(s) you want to vote for (0 to 9).

Returns:
    :obj:`~pyrogram.types.Poll` - On success, the poll with the chosen option is returned.

Example:
    .. code-block:: python

        await app.vote_poll(chat_id, message_id, 6)
)r   message_idsN)peermsg_idr   r   )get_messagespoll
isinstancelistinvoker   	functionsmessagesSendVoteresolve_peerr   datar   Poll_parseupdates)r
   r   r   r   r   optionrs          P/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/messages/vote_poll.py	vote_pollVotePoll.vote_poll   s     > '''PPVV#-gt#<#<7)'++MM""++,,W55!AHIvf-22I , 
 
 zz  yy|44 Q
 6I	
s@   C3C(A*C3 C*C3	"C,+C37C181C3*C3,C3 N)
__name__
__module____qualname____firstlineno__r   intstrr   r#   __static_attributes__r%       r"   r   r      sJ    *5*5sCx*5 *5 sDI~&	*5
 
*5r-   r   )typingr   r   pyrogramr   r   r   r%   r-   r"   <module>r0      s   &    +5 +5r-   