
    iE                     D    S SK Jr  S SKrS SKJr  S SKJr   " S S5      rg)    )UnionN)raw)typesc                   B    \ rS rSr SSSS\\\4   S\SSS	S
4
S jjrSrg)StopPoll   Nselfzpyrogram.Clientchat_id
message_idreply_markupztypes.InlineKeyboardMarkupreturnz
types.Pollc                 v  #    U R                  XS9I Sh  vN R                  nU R                  [        R                  R
                  R                  U R                  U5      I Sh  vN U[        R                  R                  [        R                  R                  [        UR                  5      S[        R                  R                  S/ S9/ S9S9U(       a  UR                  U 5      I Sh  vN OSS95      I Sh  vN n[        R                  R                  XR                   S	   5      $  GN N NE N77f)
a^  Stop a poll which was sent by you.

Stopped polls can't be reopened and nobody will be able to vote in it anymore.

.. 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).

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

    reply_markup (:obj:`~pyrogram.types.InlineKeyboardMarkup`, *optional*):
        An InlineKeyboardMarkup object.

Returns:
    :obj:`~pyrogram.types.Poll`: On success, the stopped poll with the final results is returned.

Example:
    .. code-block:: python

        await app.stop_poll(chat_id, message_id)
)r
   message_idsNT )textentities)idclosedquestionanswers)poll)peerr   mediar   r   )get_messagesr   invoker   	functionsmessagesEditMessageresolve_peerr   InputMediaPollPollintr   TextWithEntitieswrite_parseupdates)r	   r
   r   r   r   rs         P/app/mltbenv/lib/python3.13/site-packages/pyrogram/methods/messages/stop_poll.py	stop_pollStopPoll.stop_poll   s    @ '''PPVV++MM""..,,W55ii..tww<#!$!;!;b!;!Q "	 (  /  @L<#5#5d#;;;QU / 
 
  zz  yy|44% Q 6 <
sG   D9D0AD9&D3'BD9/D50D9?D7 1D93D95D97D9 )N)	__name__
__module____qualname____firstlineno__r   r"   strr)   __static_attributes__r+       r(   r   r      sG    
 6:	2525sCx25 25 3	25
 
25 25r2   r   )typingr   pyrogramr   r   r   r+   r2   r(   <module>r5      s   &    35 35r2   